All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] vhost-user-gpu: Add blob resource and shared memory support
@ 2026-07-17  9:39 Dorinda Bassey
  2026-07-17  9:39 ` [PATCH v2 1/3] vhost-user-gpu: Add shared memory region support Dorinda Bassey
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Dorinda Bassey @ 2026-07-17  9:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: mhrica, mst, sgarzare, manos.pitsidianakis, marcandre.lureau,
	stefanha, pbonzini, aesteve, Dorinda Bassey

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-07-17 10:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17  9:39 [PATCH v2 0/3] vhost-user-gpu: Add blob resource and shared memory support Dorinda Bassey
2026-07-17  9:39 ` [PATCH v2 1/3] vhost-user-gpu: Add shared memory region support Dorinda Bassey
2026-07-17  9:39 ` [PATCH v2 2/3] vhost-user-gpu: Forward RESOURCE_BLOB and CONTEXT_INIT flags Dorinda Bassey
2026-07-17  9:39 ` [PATCH v2 3/3] vhost: Fix SHMEM_MAP transaction ordering and resulting deadlock Dorinda Bassey
2026-07-17 10:00   ` Michael S. Tsirkin
2026-07-17 10:07     ` Dorinda Bassey
2026-07-17 10:11       ` Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.