From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Huang, Honglei1" <Honglei1.Huang@amd.com>
Cc: "odaki@rsg.ci.i.u-tokyo.ac.jp" <odaki@rsg.ci.i.u-tokyo.ac.jp>,
"dmitry.osipenko@collabora.com" <dmitry.osipenko@collabora.com>,
"mst@redhat.com" <mst@redhat.com>,
"cohuck@redhat.com" <cohuck@redhat.com>,
"pbonzini@redhat.com" <pbonzini@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"Huang, Ray" <Ray.Huang@amd.com>
Subject: Re: [RFC PATCH v8 0/5] virtio-gpu: Add userptr support and ROCm capability
Date: Fri, 04 Dec 2026 12:56:07 +0000 [thread overview]
Message-ID: <87cxrhxl08.fsf@draig.linaro.org> (raw)
In-Reply-To: <CY8PR12MB7170465930CEC36CC9E71056D94A2@CY8PR12MB7170.namprd12.prod.outlook.com> (Honglei1 Huang's message of "Fri, 4 Dec 2026 06:50:45 +0000")
"Huang, Honglei1" <Honglei1.Huang@amd.com> writes:
> AMD General
>
> Hi all,
>
> Please let me know if you have any review comments.
> Welcome to any comments.
I'm trying to work out the best way to defend this with tests. I guess
we need a fairly new virglrenderer? Is there any support for ROCm for
the vhost-user-gpu backends?
What would be useful is some sort of functional test with a (small)
workload so we can at least exercise the interface when the libraries
align.
We should also document the host and guest requirements in
virtio-gpu.rst.
>
> Regards,
> Honglei
>
> -----Original Message-----
> From: Huang, Honglei1 <Honglei1.Huang@amd.com>
> Sent: Thursday, December 3, 2026 9:44 AM
> To: alex.bennee@linaro.org; dmitry.osipenko@collabora.com; odaki@rsg.ci.i.u-tokyo.ac.jp; Huang, Ray <Ray.Huang@amd.com>
> Cc: mst@redhat.com; cohuck@redhat.com; pbonzini@redhat.com; qemu-devel@nongnu.org; Huang, Honglei1 <Honglei1.Huang@amd.com>
> Subject: [RFC PATCH v8 0/5] virtio-gpu: Add userptr support and ROCm capability
>
> This patch series introduces enhancements to virtio-gpu to improve memory management and GPU virtualization capabilities for ROCm (Radeon Open Compute) workloads.
>
> Usage example:
> -device virtio-gpu-gl,rocm=on
>
> The series includes:
>
> 1. Add ROCm capset ID 10 to the imported Linux headers.
> 2. Enable ROCm native contexts through the "rocm=on" device property.
> 3. Replace the qemu side 16384 entry limit with an overflow check.
> 4. Add VIRTIO_GPU_F_BLOB_READONLY and VIRTIO_GPU_BLOB_FLAG_USE_READONLY
> to the imported Linux headers.
> 5. Advertise readonly blob support whenever blobs are enabled.
>
> See overall detail in virglrenderer pr [1].
> kernel header change patch: [2].
> Virtio spec change request: [3].
>
> Changes in v8:
> - Rebase onto current master.
> - Patches 1, 4: generate with update-linux-headers.sh from [2] (Alex).
> - Patch 2: add Dmitry's Reviewed-by.
> - Patch 3: check entry array size overflow, not a fixed limit (Dmitry).
> - Patch 5: advertise readonly blobs generically (Dmitry).
>
> Changes in v7:
> - Replace the obsolete USE_USERPTR=0x8 / USERPTR_RDONLY=0x10 header
> definitions with negotiated BLOB_READONLY feature bit 6 and
> USE_READONLY=0x8.
> - Use ROCm capset ID 10 rather than 8.
> - Add readonly advertisement for the paired ROCm blob backend.
>
> Changes in v6:
> - Changed to RFC status
> - Removed VIRTIO_GPU_F_RESOURCE_USERPTR feature flag from patch 1
> - Added VIRTIO_GPU_BLOB_FLAG_USERPTR_RDONLY flag to patch 1
>
> Changes in v5:
> - Split userptr header updates into dedicated patch (patch 1/4)
> - Extracted nr_entries limit removal into standalone commit (patch 2/4)
> - Split ROCm header updates into dedicated patch (patch 3/4)
> - Removed VIRTIO_GPU_F_RESOURCE_USERPTR feature detection
> - Keep ROCm capability support with "rocm=on" device property (patch 4/4)
> - Change corresponding commit messages, change corresponding cover letter content
> - Remove RFC label
>
> Changes in v4:
> - Change this series to RFC
> - Renamed HSAKMT-related functionality to ROCm for better clarity and
> alignment with the ROCm ecosystem terminology
> - Changed device property from "hsakmt=on" to "rocm=on"
> - Changed flag from VIRTIO_GPU_FLAG_HSAKMT_ENABLED to
> VIRTIO_GPU_FLAG_ROCM_ENABLED
> - Changed renderer flag from VIRGL_RENDER_USE_HSAKMT to
> VIRGL_RENDERER_USE_ROCM
> - Updated capset handling to use VIRTIO_GPU_CAPSET_ROCM (8) instead of
> VIRTIO_GPU_CAPSET_HSAKMT (8)
> - Removed the error handling fix from patch 1 (virtio-gpu-virgl.c) into
> another thread
>
> Changes in v3:
> - Renamed HSAKMT-related functionality to ROCm for better clarity and
> alignment with the ROCm ecosystem terminology
> - Changed device property from "hsakmt=on" to "rocm=on"
> - Changed flag from VIRTIO_GPU_FLAG_HSAKMT_ENABLED to
> VIRTIO_GPU_FLAG_ROCM_ENABLED
> - Changed renderer flag from VIRGL_RENDER_USE_HSAKMT to
> VIRGL_RENDERER_USE_ROCM
> - Updated capset handling to use VIRTIO_GPU_CAPSET_ROCM (8) instead of
> VIRTIO_GPU_CAPSET_HSAKMT (8)
> - Removed the error handling fix from patch 1 (virtio-gpu-virgl.c) into
> another thread
>
> Changes in v2:
> - Fixed error handling bug in virtio-gpu-virgl.c where the return
> value check was inverted (changed from "if (!ret)" to "if (ret != 0)")
> - Added VIRGL_RENDER_USE_HSAKMT flag initialization in virtio_gpu_virgl_init()
> when HSAKMT support is enabled
> - Simplified blob resource creation logic by removing complex conditional
> branching for userptr vs regular blob handling
> - Updated commit messages to reflect bug fixes and improvements
> - Added references to related patches in Linux kernel, virglrenderer, and
> ROCm Runtime components for complete feature implementation tracking
>
> [1]: https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1708
> [2]: https://lore.kernel.org/all/20261202101658.1209083-1-honghuan@amd.com/
> [3]: https://lore.kernel.org/virtio-comment/20261202095728.1127178-1-honghuan@amd.com/
>
> Honglei Huang (5):
> linux-headers: Update to v7.4-rc2-userptr-v11 for ROCm capset
> (!UPSTREAM)
> virtio-gpu: Add ROCm capability support
> virtio-gpu: remove the artificial IOV mapping limit
> linux-headers: Update to v7.4-rc2-userptr-v11 for readonly blob
> (!UPSTREAM)
> virtio-gpu: advertise readonly blobs
>
> hw/display/virtio-gpu-base.c | 1 +
> hw/display/virtio-gpu-gl.c | 2 ++
> hw/display/virtio-gpu-rutabaga.c | 7 ++++++
> hw/display/virtio-gpu-virgl.c | 24 +++++++++++++++++++++
> hw/display/virtio-gpu.c | 19 ++++++++++------
> include/hw/virtio/virtio-gpu.h | 3 +++
> include/standard-headers/linux/virtio_gpu.h | 6 ++++++
> 7 files changed, 55 insertions(+), 7 deletions(-)
>
>
> base-commit: 9cda597a1a3903d090e8e55e23f5b8a859da88ab
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
prev parent reply other threads:[~2026-12-04 12:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 1:43 [RFC PATCH v8 0/5] virtio-gpu: Add userptr support and ROCm capability Honglei Huang
2026-12-03 1:43 ` [RFC PATCH v8 1/5] linux-headers: Update to v7.4-rc2-userptr-v11 for ROCm capset (!UPSTREAM) Honglei Huang
2026-12-03 1:43 ` [RFC PATCH v8 2/5] virtio-gpu: Add ROCm capability support Honglei Huang
2026-12-03 1:43 ` [RFC PATCH v8 3/5] virtio-gpu: remove the artificial IOV mapping limit Honglei Huang
2026-12-04 12:51 ` Alex Bennée
2026-12-03 1:43 ` [RFC PATCH v8 4/5] linux-headers: Update to v7.4-rc2-userptr-v11 for readonly blob (!UPSTREAM) Honglei Huang
2026-12-04 12:51 ` Alex Bennée
2026-12-03 1:43 ` [RFC PATCH v8 5/5] virtio-gpu: advertise readonly blobs Honglei Huang
2026-12-04 6:50 ` [RFC PATCH v8 0/5] virtio-gpu: Add userptr support and ROCm capability Huang, Honglei1
2026-12-04 12:56 ` Alex Bennée [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cxrhxl08.fsf@draig.linaro.org \
--to=alex.bennee@linaro.org \
--cc=Honglei1.Huang@amd.com \
--cc=Ray.Huang@amd.com \
--cc=cohuck@redhat.com \
--cc=dmitry.osipenko@collabora.com \
--cc=mst@redhat.com \
--cc=odaki@rsg.ci.i.u-tokyo.ac.jp \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.