Add blob resource support to the vhost-user-gpu device, enabling Vulkan pass-through via Venus with a vhost-user backend such as vhost-device-gpu.
Patches 1-2 register a shared memory region for SHMEM_MAP/UNMAP operations and forward the RESOURCE_BLOB and CONTEXT_INIT feature flags from the backend to the guest. Patch 3 fixes a deadlock that occurs when the memory region transaction commit (needed so the KVM slot exists before the guest accesses the mapped region) triggers ADD_MEM_REG back to the backend while it is still blocked waiting for the SHMEM_MAP reply. Dorinda Bassey (1): vhost: Fix SHMEM_MAP transaction ordering and resulting deadlock Matej Hrica (2): vhost-user-gpu: Add shared memory region support vhost-user-gpu: Forward RESOURCE_BLOB and CONTEXT_INIT flags hw/display/vhost-user-gpu.c | 17 +++++++++++++++++ hw/virtio/vhost-user.c | 20 ++------------------ hw/virtio/vhost.c | 10 ++++++++++ 3 files changed, 29 insertions(+), 18 deletions(-) Changes in v2: - Reordered patches: shmem support before feature flags - Use virtio_new_shmem_region() helper - Drop explicit transaction begin/commit wrapping -- 2.52.0
