virtio: add vhost-user-base and a generic vhost-user-device
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 10 Jul 2023 15:35:09 +0000 (16:35 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Oct 2023 08:54:04 +0000 (04:54 -0400)
commiteee77809733d3a94c0d78a29a93d032c1faefd2c
tree857c5e00e2aff1801c844f7722b09895d50ac4ca
parentf05356f84d2e3cb4f6437716cc9b5dc59baf769d
virtio: add vhost-user-base and a generic vhost-user-device

In theory we shouldn't need to repeat so much boilerplate to support
vhost-user backends. This provides a generic vhost-user-base QOM
object and a derived vhost-user-device for which the user needs to
provide the few bits of information that aren't currently provided by
the vhost-user protocol. This should provide a baseline implementation
from which the other vhost-user stub can specialise.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230710153522.3469097-8-alex.bennee@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/meson.build
hw/virtio/vhost-user-device-pci.c [new file with mode: 0644]
hw/virtio/vhost-user-device.c [new file with mode: 0644]
include/hw/virtio/vhost-user-device.h [new file with mode: 0644]