Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
include/hw/virtio: document virtio_notify_config
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230710153522.3469097-5-alex.bennee@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
stsquad authored and mstsirkin committed Jul 10, 2023
1 parent 7e8094f commit a0cc767
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/hw/virtio/virtio.h
Expand Up @@ -276,6 +276,13 @@ extern const VMStateInfo virtio_vmstate_info;

int virtio_load(VirtIODevice *vdev, QEMUFile *f, int version_id);

/**
* virtio_notify_config() - signal a change to device config
* @vdev: the virtio device
*
* Assuming the virtio device is up (VIRTIO_CONFIG_S_DRIVER_OK) this
* will trigger a guest interrupt and update the config version.
*/
void virtio_notify_config(VirtIODevice *vdev);

bool virtio_queue_get_notification(VirtQueue *vq);
Expand Down

0 comments on commit a0cc767

Please sign in to comment.