Fixes for QEMU 7.1-rc4
From: Marc-André Lureau <[email protected]>
The following changes since commit c7208a6e0d049f9e8af15df908168a79b1f99685:
Update version for v7.1.0-rc3 release (2022-08-16 20:45:19 -0500)
are available in the Git repository at:
[email protected]:marcandre.lureau/qemu.git tags/fixes-pull-request
for you to fetch changes up to 88738ea40bee4c2cf9aae05edd2ec87e0cbeaf36:
ui/console: fix qemu_console_resize() regression (2022-08-18 10:46:55 +0400)
----------------------------------------------------------------
Some fixes pending on the ML:
* console regression fix
* dbus-vmstate error handling fix
* a build-sys fix
----------------------------------------------------------------
Marc-André Lureau (2):
build-sys: disable vhost-user-gpu if !opengl ui/console: fix qemu_console_resize() regression
Priyankar Jain (1):
dbus-vmstate: Restrict error checks to registered proxies in
dbus_get_proxies
meson.build | 2 +- backends/dbus-vmstate.c | 13 +++++++++---- ui/console.c | 6 ++++-- 3 files changed, 14 insertions(+), 7 deletions(-)
Signature · 1 line
2.37.1
[PULL 1/3] dbus-vmstate: Restrict error checks to registered proxies in dbus_get_proxies
From: Priyankar Jain <[email protected]>
The purpose of dbus_get_proxies to construct the proxies corresponding to the IDs registered to dbus-vmstate.
Currenty, this function returns an error in case there is any failure while instantiating proxy for "all" the names on dbus.
Ideally this function should error out only if it is not able to find and validate the proxies registered to the backend otherwise any offending process(for eg: the process purposefully may not export its Id property on the dbus) may connect to the dbus and can lead to migration failures.
This commit ensures that dbus_get_proxies returns an error if it is not able to find and validate the proxies of interest(the IDs registered during the dbus-vmstate instantiation).
Message-Id: <[email protected]>
--- backends/dbus-vmstate.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
backends/dbus-vmstate.c +9 -4
@@ -114,14 +114,19 @@ dbus_get_proxies(DBusVMState *self, GError **err)"org.qemu.VMState1" , NULL, err);if (!proxy) { -return NULL ; +if (err !=NULL && *err !=NULL ) { +warn_report ("%s: Failed to create proxy: %s" , + __func__, (*err)->message); +g_clear_error (err); + } +continue ; } result =g_dbus_proxy_get_cached_property (proxy,"Id" );if (!result) { -g_set_error_literal (err,G_IO_ERROR ,G_IO_ERROR_FAILED , -"VMState Id property is missing." ); -return NULL ; +warn_report ("%s: VMState Id property is missing." , __func__); +g_clear_object (&proxy); +continue ; } id =g_variant_dup_string (result, &size);
Signature · 1 line
2.37.1
[PULL 2/3] build-sys: disable vhost-user-gpu if !opengl
In reply to [email protected]From: Marc-André Lureau <[email protected]>
vhost-user-gpu uses epoxy/glflush and thus requires opengl.
Message-Id: <[email protected]>
--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
@@ -1097,7 +1097,7 @@ if (have_system or have_tools) and (virgl.found() or opengl.found()) gbm = dependency('gbm', method: 'pkg-config', required: false, kwargs: static_kwargs) endif -have_vhost_user_gpu = have_vhost_user_gpu and virgl.found() and gbm.found() +have_vhost_user_gpu = have_vhost_user_gpu and virgl.found() and opengl.found() and gbm.found() gnutls = not_found gnutls_crypto = not_found
Signature · 1 line
2.37.1
[PULL 3/3] ui/console: fix qemu_console_resize() regression
In reply to [email protected]From: Marc-André Lureau <[email protected]>
The display may be corrupted when changing screen colour depth in qemu-system-ppc/MacOS since 7.0.
Do not short-cut qemu_console_resize() if the surface is backed by vga vram. When the scanout isn't set, or it is already allocated, or opengl, and the size is fitting, we still avoid the reallocation & replace path.
Message-Id: <[email protected]>
--- ui/console.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
ui/console.c +4 -2
@@ -2575,11 +2575,13 @@ static void vc_chr_open(Chardev *chr,void qemu_console_resize (QemuConsole *s,int width,int height) { -DisplaySurface *surface; +DisplaySurface *surface =qemu_console_surface (s);assert (s->console_type ==GRAPHIC_CONSOLE ); -if (qemu_console_get_width (s,-1 ) == width && +if ((s->scanout.kind !=SCANOUT_SURFACE || + (surface && surface->flags &QEMU_ALLOCATED_FLAG )) && +qemu_console_get_width (s,-1 ) == width &&qemu_console_get_height (s,-1 ) == height) {return ; }
Signature · 1 line
2.37.1
Richard Henderson
AppliedQuoted 12 lines · On 8/17/22 23:56, [email protected] wrote:
From: Marc-André Lureau <[email protected]>
The following changes since commit
c7208a6e0d049f9e8af15df908168a79b1f99685:Update version for v7.1.0-rc3 release (2022-08-16 20:45:19 -0500)are available in the Git repository at:
[email protected]:marcandre.lureau/qemu.git tags/fixes-pull-request
for you to fetch changes up to
88738ea40bee4c2cf9aae05edd2ec87e0cbeaf36:
Quoted 7 lines
ui/console: fix qemu_console_resize() regression (2022-08-18 10:46:55 +0400)----------------------------------------------------------------
Some fixes pending on the ML:
* console regression fix
* dbus-vmstate error handling fix
* a build-sys fix
Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/7.1 as appropriate.
r~
Quoted 16 lines
----------------------------------------------------------------
Marc-André Lureau (2):
build-sys: disable vhost-user-gpu if !opengl ui/console: fixqemu_console_resize()regressionPriyankar Jain (1):
dbus-vmstate: Restrict error checks to registered proxies in
dbus_get_proxiesmeson.build | 2 +- backends/dbus-vmstate.c | 13 +++++++++---- ui/console.c | 6 ++++-- 3 files changed, 14 insertions(+), 7 deletions(-)