aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2023-07-10 16:35:12 +0100
committerMichael S. Tsirkin <mst@redhat.com>2023-10-04 04:54:05 -0400
commitf92a2d61cd86fd585b1b2a57295fcde278aebd78 (patch)
tree6175f36a387f03e8bd99aa0ade3d737aa3cee390 /include
parenteee77809733d3a94c0d78a29a93d032c1faefd2c (diff)
downloadqemu-f92a2d61cd86fd585b1b2a57295fcde278aebd78.zip
qemu-f92a2d61cd86fd585b1b2a57295fcde278aebd78.tar.gz
qemu-f92a2d61cd86fd585b1b2a57295fcde278aebd78.tar.bz2
hw/virtio: add config support to vhost-user-device
To use the generic device the user will need to provide the config region size via the command line. We also add a notifier so the guest can be pinged if the remote daemon updates the config. With these changes: -device vhost-user-device-pci,virtio-id=41,num_vqs=2,config_size=8 is equivalent to: -device vhost-user-gpio-pci Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20230710153522.3469097-11-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')
-rw-r--r--include/hw/virtio/vhost-user-device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/vhost-user-device.h b/include/hw/virtio/vhost-user-device.h
index 9105011..3ddf88a 100644
--- a/include/hw/virtio/vhost-user-device.h
+++ b/include/hw/virtio/vhost-user-device.h
@@ -22,6 +22,7 @@ struct VHostUserBase {
CharBackend chardev;
uint16_t virtio_id;
uint32_t num_vqs;
+ uint32_t config_size;
/* State tracking */
VhostUserState vhost_user;
struct vhost_virtqueue *vhost_vq;