[PULL 00/20] virtio-gpu updates (resolution, error handling, fences, native context)

Alex Bennée posted 20 patches 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260306195048.2869788-1-alex.bennee@linaro.org
Maintainers: Pierrick Bouvier <pierrick.bouvier@linaro.org>, "Alex Bennée" <alex.bennee@linaro.org>, Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>, Dmitry Osipenko <dmitry.osipenko@collabora.com>, "Michael S. Tsirkin" <mst@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Eric Blake <eblake@redhat.com>, Markus Armbruster <armbru@redhat.com>
docs/system/devices/virtio/virtio-gpu.rst | 121 ++++++++-
meson.build                               |   8 +-
qapi/virtio.json                          |  13 +-
include/hw/virtio/virtio-gpu.h            |  26 +-
include/hw/virtio/virtio.h                |  10 +
include/ui/egl-context.h                  |   3 +-
include/ui/sdl2.h                         |   7 +
hw/display/virtio-gpu-base.c              |  16 ++
hw/display/virtio-gpu-gl.c                |  62 +++--
hw/display/virtio-gpu-udmabuf-stubs.c     |   2 +-
hw/display/virtio-gpu-udmabuf.c           |  27 +-
hw/display/virtio-gpu-virgl.c             | 410 +++++++++++++++++++++++++++---
hw/display/virtio-gpu.c                   |  23 +-
hw/virtio/virtio.c                        |  10 +
ui/dbus.c                                 |   4 +-
ui/egl-context.c                          |   6 +-
ui/egl-headless.c                         |   4 +-
ui/gtk-egl.c                              |   5 +-
ui/gtk-gl-area.c                          |  13 +-
ui/sdl2-gl.c                              |  76 +++++-
ui/sdl2.c                                 |  48 ++++
ui/spice-display.c                        |   4 +-
hw/display/trace-events                   |   2 +-
23 files changed, 794 insertions(+), 106 deletions(-)
[PULL 00/20] virtio-gpu updates (resolution, error handling, fences, native context)
Posted by Alex Bennée 1 month, 1 week ago
The following changes since commit 900682c57287ea308850af4490339455512e92e7:

  Merge tag 'pull-target-arm-20260306-2' of https://gitlab.com/pm215/qemu into staging (2026-03-06 15:58:24 +0000)

are available in the Git repository at:

  https://gitlab.com/stsquad/qemu.git tags/pull-11.0-virtio-gpu-updates-060326-1

for you to fetch changes up to 4eb0aace85f507e21bb8ac323ad81c5860f7a52d:

  virtio-gpu: Support mapping hostmem blobs with map_fixed (2026-03-06 17:27:40 +0000)

----------------------------------------------------------------
virtio-gpu updates (resolution, error handling, fences, native context)

  - support per-head resolution definitions
  - don't disable scanouts on sdl and gtk when display refreshed
  - take care not confuse virgl with switching contexts
  - use dmabuf to import textures when we can
  - keep virtio BH processing to main-loop
  - improve error handling for fence creation
  - support async fences
  - add support for DRM native context
  - update virtio-gpu docs
  - remove superfluous memory region enabling
  - validate mapping offsets
  - destroy vrigl resources on reset
  - support mapping hostmem blobs with map_fixed

----------------------------------------------------------------
Alex Bennée (1):
      docs/system: virtio-gpu: Document host/guest requirements

Andrew Keesler (1):
      Support per-head resolutions with virtio-gpu

Dmitry Osipenko (16):
      ui/gtk: Don't disable scanout when display is refreshed
      ui/sdl2: Don't disable scanout when display is refreshed
      ui/egl: Don't change bound GL context when creating new context
      ui/gdk: Restore original context after new context creation
      ui/sdl2: Restore original context after new context creation
      virtio-gpu: Ensure BHs are invoked only from main-loop thread
      virtio-gpu: Handle virgl fence creation errors
      virtio-gpu: Support asynchronous fencing
      virtio-gpu: Support DRM native context
      docs/system: virtio-gpu: Add link to Mesa VirGL doc
      docs/system: virtio-gpu: Update Venus link
      virtio-gpu: Remove superfluous memory_region_set_enabled()
      virtio-gpu: Validate hostmem mapping offset
      virtio-gpu: Replace finish_unmapping with mapping_state
      virtio-gpu: Destroy virgl resources on virtio-gpu reset
      virtio-gpu: Support mapping hostmem blobs with map_fixed

Dongwon Kim (1):
      virtio-gpu: Fix scanout dmabuf cleanup during resource destruction

Pierre-Eric Pelloux-Prayer (1):
      ui/sdl2: Implement dpy dmabuf functions

 docs/system/devices/virtio/virtio-gpu.rst | 121 ++++++++-
 meson.build                               |   8 +-
 qapi/virtio.json                          |  13 +-
 include/hw/virtio/virtio-gpu.h            |  26 +-
 include/hw/virtio/virtio.h                |  10 +
 include/ui/egl-context.h                  |   3 +-
 include/ui/sdl2.h                         |   7 +
 hw/display/virtio-gpu-base.c              |  16 ++
 hw/display/virtio-gpu-gl.c                |  62 +++--
 hw/display/virtio-gpu-udmabuf-stubs.c     |   2 +-
 hw/display/virtio-gpu-udmabuf.c           |  27 +-
 hw/display/virtio-gpu-virgl.c             | 410 +++++++++++++++++++++++++++---
 hw/display/virtio-gpu.c                   |  23 +-
 hw/virtio/virtio.c                        |  10 +
 ui/dbus.c                                 |   4 +-
 ui/egl-context.c                          |   6 +-
 ui/egl-headless.c                         |   4 +-
 ui/gtk-egl.c                              |   5 +-
 ui/gtk-gl-area.c                          |  13 +-
 ui/sdl2-gl.c                              |  76 +++++-
 ui/sdl2.c                                 |  48 ++++
 ui/spice-display.c                        |   4 +-
 hw/display/trace-events                   |   2 +-
 23 files changed, 794 insertions(+), 106 deletions(-)

-- 
2.47.3


Re: [PULL 00/20] virtio-gpu updates (resolution, error handling, fences, native context)
Posted by Peter Maydell 1 month ago
On Fri, 6 Mar 2026 at 19:51, Alex Bennée <alex.bennee@linaro.org> wrote:
>
> The following changes since commit 900682c57287ea308850af4490339455512e92e7:
>
>   Merge tag 'pull-target-arm-20260306-2' of https://gitlab.com/pm215/qemu into staging (2026-03-06 15:58:24 +0000)
>
> are available in the Git repository at:
>
>   https://gitlab.com/stsquad/qemu.git tags/pull-11.0-virtio-gpu-updates-060326-1
>
> for you to fetch changes up to 4eb0aace85f507e21bb8ac323ad81c5860f7a52d:
>
>   virtio-gpu: Support mapping hostmem blobs with map_fixed (2026-03-06 17:27:40 +0000)
>
> ----------------------------------------------------------------
> virtio-gpu updates (resolution, error handling, fences, native context)
>
>   - support per-head resolution definitions
>   - don't disable scanouts on sdl and gtk when display refreshed
>   - take care not confuse virgl with switching contexts
>   - use dmabuf to import textures when we can
>   - keep virtio BH processing to main-loop
>   - improve error handling for fence creation
>   - support async fences
>   - add support for DRM native context
>   - update virtio-gpu docs
>   - remove superfluous memory region enabling
>   - validate mapping offsets
>   - destroy vrigl resources on reset
>   - support mapping hostmem blobs with map_fixed



Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/11.0
for any user-visible changes.

-- PMM