Support virtio-gpu DRM native context and MAP_FIXED API
Status from this message: Queued to virtio-gpu/next, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v22 Latest18 patches 12 repliesApplied
- v2118 patches 10 repliesSuperseded
- v2021 patches 5 repliesSuperseded
Earlier versions · 19
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v19 | 20 patches | 6 replies | Superseded | |
| v18 | 19 patches | 3 replies | Superseded | |
| v17 | 18 patches | 2 replies | Superseded | |
| v16 | 10 patches | 1 reply | Superseded | |
| v15 | 10 patches | 0 replies | Superseded | |
| v14 | 10 patches | 17 replies | Superseded | |
| v13 | 10 patches | 0 replies | Superseded | |
| v12 | 10 patches | 2 replies | Superseded | |
| v11 | 10 patches | 14 replies | Superseded | |
| v10 | 10 patches | 2 replies | Superseded | |
| v9 | 10 patches | 1 reply | Superseded | |
| v8 | 10 patches | 4 replies | Superseded | |
| v7 | 10 patches | 4 replies | Superseded | |
| v6 | 10 patches | 27 replies | Superseded | |
| v5 | 8 patches | 19 replies | Superseded | |
| v4 | 5 patches | 12 replies | Superseded | |
| v3 | 6 patches | 13 replies | Superseded | |
| v2 | 6 patches | 16 replies | Superseded | |
| v1 | 6 patches | 6 replies | Superseded |
Patches in v22 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | ui/gtk: Don't disable scanout when display is refreshedui/ ui/ | +0 | 0 replies | |
| 2/18 | ui/sdl2: Don't disable scanout when display is refreshedui/ | +0 | 3 replies | |
| 3/18 | ui/egl: Don't change bound GL context when creating new contextinclude/ ui/ ui/ +3 more | +9 | 0 replies | |
| 4/18 | ui/gdk: Restore original context after new context creationui/ | +9 | 0 replies | |
| 5/18 | ui/sdl2: Restore original context after new context creationui/ | +6 | 0 replies | |
| 6/18 | ui/sdl2: Implement dpy dmabuf functionsinclude/ meson.build ui/ +1 more | +117 | 5 replies | |
| 7/18 | virtio-gpu: Ensure BHs are invoked only from main-loop threadhw/ hw/ hw/ +1 more | +26 | 0 replies | |
| 8/18 | virtio-gpu: Handle virgl fence creation errorshw/ | +22 | 0 replies | |
| 9/18 | virtio-gpu: Support asynchronous fencinghw/ hw/ include/ +1 more | +145 | 0 replies | |
| 10/18 | virtio-gpu: Support DRM native contextdocs/ hw/ hw/ +2 more | +59 | 0 replies | |
| 11/18 | docs/system: virtio-gpu: Add link to Mesa VirGL docdocs/ | +2 | 0 replies | |
| 12/18 | docs/system: virtio-gpu: Update Venus linkdocs/ | +1 | 0 replies | |
| 13/18 | docs/system: virtio-gpu: Document host/guest requirementsdocs/ | +102 | 0 replies | |
| 14/18 | virtio-gpu: Remove superfluous memory_region_set_enabled()hw/ | +0 | 0 replies | |
| 15/18 | virtio-gpu: Validate hostmem mapping offsethw/ | +10 | 0 replies | |
| 16/18 | virtio-gpu: Replace finish_unmapping with mapping_statehw/ hw/ | +23 | 0 replies | |
| 17/18 | virtio-gpu: Destroy virgl resources on virtio-gpu resethw/ hw/ include/ | +107 | 0 replies | |
| 18/18 | virtio-gpu: Support mapping hostmem blobs with map_fixedhw/ hw/ include/ | +97 | 0 replies |
Reviews trailers per patch
16 of 18 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Akihiko Odaki | Michael S. Tsirkin | Alex Bennée | Pierre-Eric Pelloux-Prayer | Yiwei Zhang | Marc-André Lureau |
|---|---|---|---|---|---|---|
| Series | R-b | |||||
| 1/18 | R-b | A-b | T-b | A-b | R-b | |
| 2/18 | R-b | A-b | T-b | A-b | R-b | |
| 3/18 | ||||||
| 4/18 | R-b | |||||
| 5/18 | R-b | A-b | T-b | A-b | R-b | |
| 6/18 | R-b | A-b | T-b | R-b | ||
| 7/18 | ||||||
| 8/18 | R-b | A-b | T-b | A-b | R-b T-b | |
| 9/18 | R-b | A-b | T-b R-b | A-b | R-b T-b | |
| 10/18 | R-b | A-b | T-b | A-b | R-b T-b | |
| 11/18 | R-b | A-b | R-b | |||
| 12/18 | R-b | A-b | R-b | |||
| 13/18 | R-b | A-b | R-b | |||
| 14/18 | R-b | R-b | ||||
| 15/18 | R-b | |||||
| 16/18 | R-b | |||||
| 17/18 | R-b | |||||
| 18/18 | R-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.
Cover letter [PATCH v22 00/18] Support virtio-gpu DRM native context and MAP_FIXED API
Hello,
This is follow up to DRM native context v16 [1] and MAP_FIXED API v10 [2] virtio-gpu patches that has been reviewed previously and were waiting for a new release of libvirglrenderer 1.3.0.
[1] https://lore.kernel.org/qemu-devel/[email protected]/
[2] https://lore.kernel.org/qemu-devel/[email protected]/
Changelog:
v22:- Added r-b from Marc-André Lureau to ui/gdk patch.
- Corrected qemu_egl_create_context() to take explicit shared GL context arg needed by gtk-egl display, as was suggested by Akihiko Odaki.
- Changed virtio-gpu BHs to use re-entrance guard as was suggested by Akihiko Odaki.
v21:- Moved virtio-gpu to use iohandler_get_aio_context() as was
suggested by Akihiko Odaki.
- Updated EGL context-create helper and displays using it to make helper take care of using appropriate parent GL context by itself, without a need to switch GL context. Done it all in a single patch:
ui/egl: Don't change bound GL context when creating new context
- Cleaned up GDK context-restoring code as was suggested by Akihiko Odaki.
v20:- Adanbonded GL context unbinding approach as it created difficulties
with GTK assuming UI toolkit processed from a single thread. Omitted all unbind-context patches and added new patch instead that makes virtio-gpu to process cmds only from main-loop thread:
virtio-gpu: Bounce virtio_gpu_ctrl_bh() to main-loop thread
- Added r-b from Akihiko Odaki to reviewed v19 patches.
- Added patches restoring GL context when new ctx created for dbus/spice/egl-headless displays.
v19:- Further improved improved naming of functions and terminology RE
GL context binding. Suggested by Akihiko Odaki.
- Added new patch "ui/gdk: Restore original context after new context creation" in addition to improved "ui/sdl2: Restore original context" that now getd actual bound GL context and restores to it instead of restoring to the console's ctx, for consistency with the rest of GL context management fixes that ensure context is bound only when necessary.
- Improved virtio_gpu_virgl_update_render_state() with force_ctx_0() and unbind_ctx() to make deferred GPU resetting maintain bound GL context properly.
v18:- Changed dpy_gl_ctx_make_current() to use first scanout when unsetting
virgl's GL ctx0 and improved naming of cmd-processing function. Suggested by Akihiko Odaki.
- Added "ui/gdk: Unset context after GL operations" patch after realizing GDK/GL code needed more gdk_gl_context_clear_current().
v17:- Rebased patches on recent upstream, updated doc patches with new
drm native contexts supported by libvirglrenderer.
- Applied minor change that was requested from Akihiko Odaki by moving virtio_gpu_device_realize() for MAP_FIXED v10.
- Added virtio_gpu_virgl_update_render_state() to virtio_gpu_fence_poll() that was missed in MAP_FIXED v10.
- Added new patches fixing another GL context switching problem I ran into recently with virgl commands unexpectedly processed from CPU thread instead main-loop:
ui/sdl2: Unset context after GL operations ui/gtk-egl: Unset context after GL operations
virtio-gpu: Unset context after GL operations
Alex Bennée (1):
docs/system: virtio-gpu: Document host/guest requirements
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
Pierre-Eric Pelloux-Prayer (1):
ui/sdl2: Implement dpy dmabuf functions
docs/system/devices/virtio/virtio-gpu.rst | 121 ++++++- hw/display/trace-events | 2 +- hw/display/virtio-gpu-gl.c | 62 +++- hw/display/virtio-gpu-virgl.c | 410 ++++++++++++++++++++-- hw/display/virtio-gpu.c | 21 +- hw/virtio/virtio.c | 10 + include/hw/virtio/virtio-gpu.h | 23 +- include/hw/virtio/virtio.h | 10 + include/ui/egl-context.h | 3 +- include/ui/sdl2.h | 7 + meson.build | 8 +- 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 | 74 +++- ui/sdl2.c | 42 +++ ui/spice-display.c | 4 +- 19 files changed, 735 insertions(+), 94 deletions(-)
Signature · 1 line
2.52.0