[PATCH v2 0/8] vhost-user-gpu fixes

Marc-André Lureau posted 8 patches 1 week, 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261113-issue-4848-v2-0-631414664bca@redhat.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Stefano Garzarella <sgarzare@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>, Dmitry Osipenko <dmitry.osipenko@collabora.com>
There is a newer version of this series
contrib/vhost-user-gpu/vhost-user-gpu.c | 169 ++++++++++++++++++++++++++------
contrib/vhost-user-gpu/virgl.c          |  70 +++++++++++--
contrib/vhost-user-gpu/vugpu.h          |   7 +-
hw/display/vhost-user-gpu.c             |  97 ++++++++++++++++--
include/hw/virtio/virtio-gpu.h          |   4 +
5 files changed, 295 insertions(+), 52 deletions(-)
[PATCH v2 0/8] vhost-user-gpu fixes
Posted by Marc-André Lureau 1 week, 2 days ago
Dmitry reported a handful of vhost-user-gpu issues (#4846-4849): crash
when a command waits for a reply and a fence is signaled (#4848), guest
losing display when the device is restarted (#4849), segfault in
vga_update_display() after a guest device reset (#4846), or main loop
spinning on bad descriptor (#4847). The first patches address those.

The rest are problems found while working through the code: console is
not resized on dmabuf scanout, the 2d scanout path frees a surface it
does not own, and the exported dmabuf is imported with the wrong stride
in some setup.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
Changes in v2:
- add "hw/display/vhost-user-gpu: reset scanouts on the main loop"
  patch, similar to virtio-gpu
- add Tested-by tags 
- Link to v1: https://lore.kernel.org/qemu-devel/20261112-issue-4848-v1-0-aeba1cfe2c03@redhat.com

---
Marc-André Lureau (8):
      contrib/vhost-user-gpu: don't fence commands waiting for a reply
      contrib/vhost-user-gpu: reset the frontend socket on stop and start
      hw/display/vhost-user-gpu: reset the console scanout on device reset
      hw/display/vhost-user-gpu: reset scanouts on the main loop
      hw/display/vhost-user-gpu: don't set an fd handler without a socket
      hw/display/vhost-user-gpu: resize the console on dmabuf scanout
      hw/display/vhost-user-gpu: fix scanout bookkeeping on the 2D path
      contrib/vhost-user-gpu: use the stride of the exported dmabuf

 contrib/vhost-user-gpu/vhost-user-gpu.c | 169 ++++++++++++++++++++++++++------
 contrib/vhost-user-gpu/virgl.c          |  70 +++++++++++--
 contrib/vhost-user-gpu/vugpu.h          |   7 +-
 hw/display/vhost-user-gpu.c             |  97 ++++++++++++++++--
 include/hw/virtio/virtio-gpu.h          |   4 +
 5 files changed, 295 insertions(+), 52 deletions(-)
---
base-commit: 49559567804523cb28cad002aa8e97f444e23ad7
change-id: 20261112-issue-4848-d49d6bd8e7b4

Best regards,
--  
Marc-André Lureau <marcandre.lureau@redhat.com>


Re: [PATCH v2 0/8] vhost-user-gpu fixes
Posted by Dmitry R 1 week, 2 days ago
Hi Marc-André,

On Fri, 13 Nov 2026 14:42:12 +0400, Marc-André Lureau wrote:
> Changes in v2:
> - add "hw/display/vhost-user-gpu: reset scanouts on the main loop"
>   patch, similar to virtio-gpu

Thanks for the quick v2. I ran our tests again on v2 on top of master
49559567: none of #4846-#4849 reproduces, and 4/8 fixes the abort on a
guest-initiated reset that I reported on v1 3/7. The only problem I
found is in 4/8 at finalize time; details are in my reply to that
patch.

A small request for v3: please use

  Dmitry R <rdmitry@taktcycles.com>

in my Reported-by and Tested-by tags. I use that address for upstream
work from now on.

Dmitry