Re: [RFC PATCH v10 0/4] drm/virtio: userptr blobs for native-context compute
From: Huang, Honglei
Date: Mon Nov 30 2026 - 03:23:49 EST
On 11/27/2026 10:32 PM, Dmitry Osipenko wrote:
Hi,
On 11/25/26 09:41, Huang, Honglei wrote:
On 11/6/2026 4:26 PM, Honglei Huang wrote:
This series adds virtio-gpu userptr support for ROCm native compute
contexts. The guest kernel pins an existing userspace mapping with
FOLL_LONGTERM and exposes it to the host as ordinary CREATE_BLOB
backing entries, avoiding a second shmem allocation and memcpy.
A non-zero userptr field selects that path. Probe
VIRTGPU_PARAM_USERPTR before using the field so an older guest kernel
rejects the request instead of silently creating a shmem blob.
See overall detail in virglrenderer pr [1]
Hi all,
Any review comments on this series? includes code for the kernel, QEMU,
and other components.
Open to any review.
I want to see ack on VIRTIO_GPU_FLAG_BLOB_READONLY_ENABLED and userptr patches from Akihiko before merging since he requested the RO enforcement feature and reviewed userpatch patch.
Hi Dmitry,
Yes, totally agreed.
Hi Akihiko,
Your feedback has helped the readonly contract, DMA coherence requirements and resource lifetime handling across the virtio GPU stack. Really appreciate your contribution.
I think your continued review will be important for future virtio-gpu
userptr changes, and I'd welcome your help in guiding its longer term
development.
Regards,
Honglei
BTW, you may drop RFC, this is already v10. RFC usually comes before v1.