mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
eee7780973
commit
f92a2d61cd
2 changed files with 58 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue