qemu-e2k/include/hw/virtio
Albert Esteve 1609476662 vhost-user: add shared_object msg
Add three new vhost-user protocol
`VHOST_USER_BACKEND_SHARED_OBJECT_* messages`.
These new messages are sent from vhost-user
back-ends to interact with the virtio-dmabuf
table in order to add or remove themselves as
virtio exporters, or lookup for virtio dma-buf
shared objects.

The action taken in the front-end depends
on the type stored in the virtio shared
object hash table.

When the table holds a pointer to a vhost
backend for a given UUID, the front-end sends
a VHOST_USER_GET_SHARED_OBJECT to the
backend holding the shared object.

The messages can only be sent after successfully
negotiating a new VHOST_USER_PROTOCOL_F_SHARED_OBJECT
vhost-user protocol feature bit.

Finally, refactor code to send response message so
that all common parts both for the common REPLY_ACK
case, and other data responses, can call it and
avoid code repetition.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
Message-Id: <20231002065706.94707-4-aesteve@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2023-10-04 18:15:06 -04:00
..
vdpa-dev.h
vhost-backend.h vhost-user: add shared_object msg 2023-10-04 18:15:06 -04:00
vhost-scsi-common.h
vhost-scsi.h
vhost-user-blk.h
vhost-user-device.h hw/virtio: add config support to vhost-user-device 2023-10-04 04:54:05 -04:00
vhost-user-fs.h
vhost-user-gpio.h
vhost-user-i2c.h
vhost-user-rng.h
vhost-user-scmi.h hw/virtio: Add a protection against duplicate vu_scmi_stop calls 2023-08-03 16:06:49 -04:00
vhost-user-scsi.h
vhost-user-vsock.h
vhost-user.h vhost-user: add shared_object msg 2023-10-04 18:15:06 -04:00
vhost-vdpa.h vdpa: export vhost_vdpa_set_vring_ready 2023-10-04 04:54:19 -04:00
vhost-vsock-common.h
vhost-vsock.h
vhost.h vhost: register and change IOMMU flag depending on Device-TLB state 2023-07-10 15:07:50 -04:00
virtio-access.h
virtio-balloon.h
virtio-blk-common.h
virtio-blk.h
virtio-bus.h
virtio-crypto.h
virtio-dmabuf.h hw/display: introduce virtio-dmabuf 2023-10-04 18:15:06 -04:00
virtio-gpu-bswap.h include/hw/virtio/virtio-gpu: Fix virtio-gpu with blob on big endian hosts 2023-08-23 12:06:44 +02:00
virtio-gpu-pci.h
virtio-gpu-pixman.h
virtio-gpu.h virtio-gpu: reset gfx resources in main thread 2023-08-07 15:45:45 +04:00
virtio-input.h virtio-input: add a virtio-mulitouch device 2023-05-28 13:08:25 +04:00
virtio-iommu.h virtio-iommu: Fix 64kB host page size VFIO device assignment 2023-07-10 18:59:32 -04:00
virtio-md-pci.h virtio-md-pci: Support unplug requests for compatible devices 2023-07-12 09:27:30 +02:00
virtio-mem.h virtio-mem: Prepare for device unplug support 2023-07-12 09:27:31 +02:00
virtio-mmio.h
virtio-net.h virtio-net: Expose MAX_VLAN 2023-10-04 04:54:09 -04:00
virtio-pci.h
virtio-pmem.h
virtio-rng.h
virtio-scsi.h
virtio-serial.h
virtio.h include/hw/virtio: document some more usage of notifiers 2023-07-10 18:59:32 -04:00