* [PULL 0/3] Fixes for QEMU 7.1-rc4
@ 2022-08-18 6:56 marcandre.lureau
2022-08-18 6:56 ` [PULL 1/3] dbus-vmstate: Restrict error checks to registered proxies in dbus_get_proxies marcandre.lureau
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: marcandre.lureau @ 2022-08-18 6:56 UTC (permalink / raw)
To: qemu-devel
Cc: qemu-arm, Beniamino Galvani, Cornelia Huck, Stefan Hajnoczi,
Thomas Huth, Gerd Hoffmann, Igor Mitsyanko, David Hildenbrand,
Peter Maydell, Richard Henderson, Marc-André Lureau,
Antony Pavlov, qemu-s390x
From: Marc-André Lureau <marcandre.lureau@redhat.com>
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:
git@gitlab.com: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(-)
--
2.37.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PULL 1/3] dbus-vmstate: Restrict error checks to registered proxies in dbus_get_proxies
2022-08-18 6:56 [PULL 0/3] Fixes for QEMU 7.1-rc4 marcandre.lureau
@ 2022-08-18 6:56 ` marcandre.lureau
2022-08-18 6:56 ` [PULL 2/3] build-sys: disable vhost-user-gpu if !opengl marcandre.lureau
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: marcandre.lureau @ 2022-08-18 6:56 UTC (permalink / raw)
To: qemu-devel
Cc: qemu-arm, Beniamino Galvani, Cornelia Huck, Stefan Hajnoczi,
Thomas Huth, Gerd Hoffmann, Igor Mitsyanko, David Hildenbrand,
Peter Maydell, Richard Henderson, Marc-André Lureau,
Antony Pavlov, qemu-s390x, Priyankar Jain
From: Priyankar Jain <priyankar.jain@nutanix.com>
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).
Signed-off-by: Priyankar Jain <priyankar.jain@nutanix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1637936117-37977-1-git-send-email-priyankar.jain@nutanix.com>
---
backends/dbus-vmstate.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/backends/dbus-vmstate.c b/backends/dbus-vmstate.c
index 9cfd758c42..57369ec0f2 100644
--- a/backends/dbus-vmstate.c
+++ b/backends/dbus-vmstate.c
@@ -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);
--
2.37.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PULL 2/3] build-sys: disable vhost-user-gpu if !opengl
2022-08-18 6:56 [PULL 0/3] Fixes for QEMU 7.1-rc4 marcandre.lureau
2022-08-18 6:56 ` [PULL 1/3] dbus-vmstate: Restrict error checks to registered proxies in dbus_get_proxies marcandre.lureau
@ 2022-08-18 6:56 ` marcandre.lureau
2022-08-18 6:56 ` [PULL 3/3] ui/console: fix qemu_console_resize() regression marcandre.lureau
2022-08-18 18:01 ` [PULL 0/3] Fixes for QEMU 7.1-rc4 Richard Henderson
3 siblings, 0 replies; 5+ messages in thread
From: marcandre.lureau @ 2022-08-18 6:56 UTC (permalink / raw)
To: qemu-devel
Cc: qemu-arm, Beniamino Galvani, Cornelia Huck, Stefan Hajnoczi,
Thomas Huth, Gerd Hoffmann, Igor Mitsyanko, David Hildenbrand,
Peter Maydell, Richard Henderson, Marc-André Lureau,
Antony Pavlov, qemu-s390x
From: Marc-André Lureau <marcandre.lureau@redhat.com>
vhost-user-gpu uses epoxy/glflush and thus requires opengl.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220628132315.664026-1-marcandre.lureau@redhat.com>
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 30a380752c..20fddbd707 100644
--- a/meson.build
+++ b/meson.build
@@ -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
--
2.37.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PULL 3/3] ui/console: fix qemu_console_resize() regression
2022-08-18 6:56 [PULL 0/3] Fixes for QEMU 7.1-rc4 marcandre.lureau
2022-08-18 6:56 ` [PULL 1/3] dbus-vmstate: Restrict error checks to registered proxies in dbus_get_proxies marcandre.lureau
2022-08-18 6:56 ` [PULL 2/3] build-sys: disable vhost-user-gpu if !opengl marcandre.lureau
@ 2022-08-18 6:56 ` marcandre.lureau
2022-08-18 18:01 ` [PULL 0/3] Fixes for QEMU 7.1-rc4 Richard Henderson
3 siblings, 0 replies; 5+ messages in thread
From: marcandre.lureau @ 2022-08-18 6:56 UTC (permalink / raw)
To: qemu-devel
Cc: qemu-arm, Beniamino Galvani, Cornelia Huck, Stefan Hajnoczi,
Thomas Huth, Gerd Hoffmann, Igor Mitsyanko, David Hildenbrand,
Peter Maydell, Richard Henderson, Marc-André Lureau,
Antony Pavlov, qemu-s390x
From: Marc-André Lureau <marcandre.lureau@redhat.com>
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.
Fixes: commit cb8962c1 ("ui: do not create a surface when resizing a GL scanout")
Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220725115815.2461322-1-marcandre.lureau@redhat.com>
---
ui/console.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index e139f7115e..765892f84f 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -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;
}
--
2.37.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PULL 0/3] Fixes for QEMU 7.1-rc4
2022-08-18 6:56 [PULL 0/3] Fixes for QEMU 7.1-rc4 marcandre.lureau
` (2 preceding siblings ...)
2022-08-18 6:56 ` [PULL 3/3] ui/console: fix qemu_console_resize() regression marcandre.lureau
@ 2022-08-18 18:01 ` Richard Henderson
3 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 2022-08-18 18:01 UTC (permalink / raw)
To: marcandre.lureau, qemu-devel
Cc: qemu-arm, Beniamino Galvani, Cornelia Huck, Stefan Hajnoczi,
Thomas Huth, Gerd Hoffmann, Igor Mitsyanko, David Hildenbrand,
Peter Maydell, Antony Pavlov, qemu-s390x
On 8/17/22 23:56, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> 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:
>
> git@gitlab.com: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
Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/7.1 as appropriate.
r~
>
> ----------------------------------------------------------------
>
> 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(-)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-08-18 18:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-18 6:56 [PULL 0/3] Fixes for QEMU 7.1-rc4 marcandre.lureau
2022-08-18 6:56 ` [PULL 1/3] dbus-vmstate: Restrict error checks to registered proxies in dbus_get_proxies marcandre.lureau
2022-08-18 6:56 ` [PULL 2/3] build-sys: disable vhost-user-gpu if !opengl marcandre.lureau
2022-08-18 6:56 ` [PULL 3/3] ui/console: fix qemu_console_resize() regression marcandre.lureau
2022-08-18 18:01 ` [PULL 0/3] Fixes for QEMU 7.1-rc4 Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).