diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2023-07-10 16:35:06 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-07-10 18:59:32 -0400 |
commit | a0cc7673ab731794caefed2033d68a2199d6bfaf (patch) | |
tree | 01aaeacf2338ff4edd4c108f3ba9976aa3ecbba9 /include/hw | |
parent | 7e8094f0dfd04d4772b65dc92dd087dc86783dc4 (diff) | |
download | qemu-a0cc7673ab731794caefed2033d68a2199d6bfaf.zip qemu-a0cc7673ab731794caefed2033d68a2199d6bfaf.tar.gz qemu-a0cc7673ab731794caefed2033d68a2199d6bfaf.tar.bz2 |
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>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/virtio/virtio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 0492d26..0671989 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -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); |