mbox series

[RFC,0/2] vhost-user-gpu: Add support for blob resources

Message ID 20240718121247.181510-1-mhrica@redhat.com (mailing list archive)
Headers show
Series vhost-user-gpu: Add support for blob resources | expand

Message

Matej Hrica July 18, 2024, 12:12 p.m. UTC
Hi,
these patches enable a backend vhost user gpu implementation to support blob
resources.
The first patch simply forwards required feature flags. The second patch
registers a shared memory region for mapping the blob resources in the guest
memory.

I am not sure about the shared memory region creation in the second patch.
Is it fine to rely on the parent object to create the shared memory region?
The parent object should be either virtio-gpu-pci or virtio-vga, though I am
not really sure about the class hierarchy.

These patches are based on this RFC: 
[RFC PATCH v2 0/5] vhost-user: Add SHMEM_MAP/UNMAP requests.

Since this relies on an RFC patch, I am also sending this as an RFC too.

Matej Hrica (2):
  vhost-user-gpu: Forward RESOURCE_BLOB and CONTEXT_INIT flags
  vhost-user-gpu: Add shared memory region support

 hw/display/vhost-user-gpu.c | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)