OSDN Git Service

hw/virtio: add config support to vhost-user-device
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 10 Jul 2023 15:35:12 +0000 (16:35 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Oct 2023 08:54:05 +0000 (04:54 -0400)
commitf92a2d61cd86fd585b1b2a57295fcde278aebd78
tree6175f36a387f03e8bd99aa0ade3d737aa3cee390
parenteee77809733d3a94c0d78a29a93d032c1faefd2c
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>
hw/virtio/vhost-user-device.c
include/hw/virtio/vhost-user-device.h