Fix (non-vga) QXL async screendump
cover Fix (non-vga) QXL async screendump
From: Marc-André Lureau <[email protected]>
Hi,
Since commit 0d9b90ce5c ("console: make QMP/HMP screendump run in coroutine"), the screendump code relies on asynchronous QXL rendering. This event isn't correctly triggered with non-vga QXL devices, because console registration has some differences. Those 2 one-liners fix the regression reported by Gerd.
Marc-André Lureau (2):
qxl: set qxl.ssd.dcl.con on secondary devices
qxl: also notify the rendering is done when skipping it
hw/display/qxl-render.c | 1 + hw/display/qxl.c | 1 + 2 files changed, 2 insertions(+)
Signature · 1 line
2.29.0
PATCH 1/2 qxl: set qxl.ssd.dcl.con on secondary devices
From: Marc-André Lureau <[email protected]>
On secondary QXL devices, the console is only set on qxl.vga.con. But graphic_hw_update_done() is called with qxl.ssd.dcl.con.
Like for primary QXL devices, set qxl.sdd.dcl.con = qxl.vga.con.
--- hw/display/qxl.c | 1 + 1 file changed, 1 insertion(+)
hw/display/qxl.c +1 -0
@@ -2266,6 +2266,7 @@ static void qxl_realize_secondary(PCIDevice *dev, Error **errp) qxl->vga.vram_size, &error_fatal); qxl->vga.vram_ptr =memory_region_get_ram_ptr (&qxl->vga.vram); qxl->vga.con =graphic_console_init (DEVICE (dev),0 , &qxl_ops, qxl); + qxl->ssd.dcl.con = qxl->vga.con; qxl->id =qemu_console_get_index (qxl->vga.con);/* == channel_id */ qxl_realize_common (qxl, errp);
Signature · 1 line
2.29.0
PATCH 2/2 qxl: also notify the rendering is done when skipping it
In reply to [email protected]From: Marc-André Lureau <[email protected]>
Asynchronous handlers may be waiting for the graphic_hw_update_done() to be called in this case too.
--- hw/display/qxl-render.c | 1 + 1 file changed, 1 insertion(+)
hw/display/qxl-render.c +1 -0
@@ -181,6 +181,7 @@ void qxl_render_update(PCIQXLDevice *qxl) qxl->mode == QXL_MODE_UNDEFINED) {qxl_render_update_area_unlocked (qxl);qemu_mutex_unlock (&qxl->ssd.lock); +graphic_hw_update_done (qxl->ssd.dcl.con);return ; }
Signature · 1 line
2.29.0