qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Honglei Huang <honghuan@amd.com>
To: <alex.bennee@linaro.org>, <dmitry.osipenko@collabora.com>,
	<Ray.Huang@amd.com>
Cc: <odaki@rsg.ci.i.u-tokyo.ac.jp>, <mst@redhat.com>,
	<cohuck@redhat.com>, <pbonzini@redhat.com>,
	<qemu-devel@nongnu.org>, Honglei Huang <honghuan@amd.com>
Subject: [PATCH 0/3] virtio-gpu: Add user pointer and HSAKMT support enhancements
Date: Wed, 12 Nov 2025 15:54:11 +0800	[thread overview]
Message-ID: <20251112075414.3719917-1-honghuan@amd.com> (raw)

This patch series introduces three key enhancements to virtio-gpu to improve
memory management and GPU virtualization capabilities:

1. VIRTIO_GPU_BLOB_FLAG_USE_USERPTR support: Enables user pointer mapping
   for blob resources, allowing guest applications to use user-allocated 
   memory for GPU resources more efficiently.

2. Configurable HSAKMT capset support: Provides better control over HSAKMT
   functionality with a new device property "hsakmt=on" to avoid exposing
   unsupported capabilities to guests.

3. VIRTIO_GPU_F_RESOURCE_USERPTR feature support: Introduces a new virtio-gpu
   feature flag with configurable "userptr=on" device property to enable
   user pointer resources for enhanced memory management.

These patches work together to provide more flexible and efficient memory
management between guest and host in GPU virtualization scenarios. The
changes are backward compatible and controlled by new device properties.

Usage examples:
  -device virtio-gpu-gl,hsakmt=on,userptr=on

The series has been tested with GPU workloads requiring advanced memory
management capabilities.

Honglei Huang (3):
  virtio-gpu: Add support for VIRTIO_GPU_BLOB_FLAG_USE_USERPTR flag
  virtio-gpu: add configurable HSAKMT capset support
  virtio-gpu: Add VIRTIO_GPU_F_RESOURCE_USERPTR feature support

 hw/display/virtio-gpu-base.c                |  3 +++
 hw/display/virtio-gpu-gl.c                  |  2 ++
 hw/display/virtio-gpu-virgl.c               | 30 ++++++++++++++++-----
 hw/display/virtio-gpu.c                     |  9 ++-----
 include/hw/virtio/virtio-gpu.h              |  6 +++++
 include/standard-headers/linux/virtio_gpu.h |  4 +++
 6 files changed, 41 insertions(+), 13 deletions(-)

-- 
2.34.1


             reply	other threads:[~2025-11-12 14:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-12  7:54 Honglei Huang [this message]
2025-11-12  7:54 ` [PATCH 1/3] virtio-gpu: Add support for VIRTIO_GPU_BLOB_FLAG_USE_USERPTR flag Honglei Huang
2025-11-12  8:44   ` Akihiko Odaki
2025-11-12 10:54     ` Honglei1.Huang@amd.com
2025-11-12  7:54 ` [PATCH 2/3] virtio-gpu: add configurable HSAKMT capset support Honglei Huang
2025-11-12  7:54 ` [PATCH 3/3] virtio-gpu: Add VIRTIO_GPU_F_RESOURCE_USERPTR feature support Honglei Huang

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=20251112075414.3719917-1-honghuan@amd.com \
    --to=honghuan@amd.com \
    --cc=Ray.Huang@amd.com \
    --cc=alex.bennee@linaro.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).