qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL 0/4] Fixes 20221124 patches
@ 2022-11-24  7:15 Gerd Hoffmann
  2022-11-24  7:15 ` [PULL 1/4] Revert "usbredir: avoid queuing hello packet on snapshot restore" Gerd Hoffmann
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2022-11-24  7:15 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, Paolo Bonzini, Gerd Hoffmann,
	Thomas Huth, Marc-André Lureau, Daniel P. Berrangé

The following changes since commit 7c09a7f6ae1770d15535980d15dffdb23f4d9786:

  Update VERSION for v7.2.0-rc2 (2022-11-22 18:59:56 -0500)

are available in the Git repository at:

  https://gitlab.com/kraxel/qemu.git tags/fixes-20221124-pull-request

for you to fetch changes up to 64f1359bd08060ffe7a5689fdcbaeec6d8a59980:

  ui/gtk: prevent ui lock up when dpy_gl_update called again before current draw event occurs (2022-11-23 12:27:55 +0100)

----------------------------------------------------------------
usb+ui: fixes for 7.2

----------------------------------------------------------------

Claudio Fontana (1):
  gtk: disable GTK Clipboard with a new meson option

Dongwon Kim (1):
  ui/gtk: prevent ui lock up when dpy_gl_update called again before
    current draw event occurs

Joelle van Dyne (1):
  Revert "usbredir: avoid queuing hello packet on snapshot restore"

Michael Tokarev (1):
  hw/usb/hcd-xhci.c: spelling: tranfer

 meson_options.txt             | 7 +++++++
 hw/usb/hcd-xhci.c             | 2 +-
 hw/usb/redirect.c             | 3 +--
 ui/gtk-egl.c                  | 2 +-
 ui/gtk-gl-area.c              | 2 +-
 ui/gtk.c                      | 2 ++
 meson.build                   | 5 +++++
 scripts/meson-buildoptions.sh | 3 +++
 ui/meson.build                | 5 ++++-
 9 files changed, 25 insertions(+), 6 deletions(-)

-- 
2.38.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PULL 1/4] Revert "usbredir: avoid queuing hello packet on snapshot restore"
  2022-11-24  7:15 [PULL 0/4] Fixes 20221124 patches Gerd Hoffmann
@ 2022-11-24  7:15 ` Gerd Hoffmann
  2022-11-24  7:16 ` [PULL 2/4] gtk: disable GTK Clipboard with a new meson option Gerd Hoffmann
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2022-11-24  7:15 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, Paolo Bonzini, Gerd Hoffmann,
	Thomas Huth, Marc-André Lureau, Daniel P. Berrangé,
	Joelle van Dyne, Ján Tomko

From: Joelle van Dyne <j@getutm.app>

Run state is also in RUN_STATE_PRELAUNCH while "-S" is used.

This reverts commit 0631d4b448454ae8a1ab091c447e3f71ab6e088a

Signed-off-by: Joelle van Dyne <j@getutm.app>
Reviewed-by: Ján Tomko <jtomko@redhat.com>

The original commit broke the usage of usbredir with libvirt, which
starts every domain with "-S".

This workaround is no longer needed because the usbredir behavior
has been fixed in the meantime:
https://gitlab.freedesktop.org/spice/usbredir/-/merge_requests/61

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Message-Id: <1689cec3eadcea87255e390cb236033aca72e168.1669193161.git.jtomko@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb/redirect.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
index 1bd30efc3ef0..fd7df599bc0b 100644
--- a/hw/usb/redirect.c
+++ b/hw/usb/redirect.c
@@ -1280,8 +1280,7 @@ static void usbredir_create_parser(USBRedirDevice *dev)
     }
 #endif
 
-    if (runstate_check(RUN_STATE_INMIGRATE) ||
-        runstate_check(RUN_STATE_PRELAUNCH)) {
+    if (runstate_check(RUN_STATE_INMIGRATE)) {
         flags |= usbredirparser_fl_no_hello;
     }
     usbredirparser_init(dev->parser, VERSION, caps, USB_REDIR_CAPS_SIZE,
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PULL 2/4] gtk: disable GTK Clipboard with a new meson option
  2022-11-24  7:15 [PULL 0/4] Fixes 20221124 patches Gerd Hoffmann
  2022-11-24  7:15 ` [PULL 1/4] Revert "usbredir: avoid queuing hello packet on snapshot restore" Gerd Hoffmann
@ 2022-11-24  7:16 ` Gerd Hoffmann
  2022-11-24  7:16 ` [PULL 3/4] hw/usb/hcd-xhci.c: spelling: tranfer Gerd Hoffmann
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2022-11-24  7:16 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, Paolo Bonzini, Gerd Hoffmann,
	Thomas Huth, Marc-André Lureau, Daniel P. Berrangé,
	Claudio Fontana, Jim Fehlig

From: Claudio Fontana <cfontana@suse.de>

The GTK Clipboard implementation may cause guest hangs.

Therefore implement new configure switch: --enable-gtk-clipboard,

as a meson option disabled by default, which warns in the help
text about the experimental nature of the feature.
Regenerate the meson build options to include it.

The initialization of the clipboard is gtk.c, as well as the
compilation of gtk-clipboard.c are now conditional on this new
option to be set.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1150
Signed-off-by: Claudio Fontana <cfontana@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Message-Id: <20221121135538.14625-1-cfontana@suse.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 meson_options.txt             | 7 +++++++
 ui/gtk.c                      | 2 ++
 meson.build                   | 5 +++++
 scripts/meson-buildoptions.sh | 3 +++
 ui/meson.build                | 5 ++++-
 5 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/meson_options.txt b/meson_options.txt
index 66128178bffa..4b749ca54900 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -219,6 +219,13 @@ option('vnc_sasl', type : 'feature', value : 'auto',
        description: 'SASL authentication for VNC server')
 option('vte', type : 'feature', value : 'auto',
        description: 'vte support for the gtk UI')
+
+# GTK Clipboard implementation is disabled by default, since it may cause hangs
+# of the guest VCPUs. See gitlab issue 1150:
+# https://gitlab.com/qemu-project/qemu/-/issues/1150
+
+option('gtk_clipboard', type: 'feature', value : 'disabled',
+       description: 'clipboard support for the gtk UI (EXPERIMENTAL, MAY HANG)')
 option('xkbcommon', type : 'feature', value : 'auto',
        description: 'xkbcommon support')
 option('zstd', type : 'feature', value : 'auto',
diff --git a/ui/gtk.c b/ui/gtk.c
index 7ec21f7798ef..4817623c8f3f 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -2403,7 +2403,9 @@ static void gtk_display_init(DisplayState *ds, DisplayOptions *opts)
         opts->u.gtk.show_tabs) {
         gtk_menu_item_activate(GTK_MENU_ITEM(s->show_tabs_item));
     }
+#ifdef CONFIG_GTK_CLIPBOARD
     gd_clipboard_init(s);
+#endif /* CONFIG_GTK_CLIPBOARD */
 }
 
 static void early_gtk_display_init(DisplayOptions *opts)
diff --git a/meson.build b/meson.build
index cf3e517e56d8..5c6b5a1c757f 100644
--- a/meson.build
+++ b/meson.build
@@ -1246,6 +1246,8 @@ endif
 gtk = not_found
 gtkx11 = not_found
 vte = not_found
+have_gtk_clipboard = get_option('gtk_clipboard').enabled()
+
 if not get_option('gtk').auto() or have_system
   gtk = dependency('gtk+-3.0', version: '>=3.22.0',
                    method: 'pkg-config',
@@ -1264,6 +1266,8 @@ if not get_option('gtk').auto() or have_system
                        required: get_option('vte'),
                        kwargs: static_kwargs)
     endif
+  elif have_gtk_clipboard
+    error('GTK clipboard requested, but GTK not found')
   endif
 endif
 
@@ -1842,6 +1846,7 @@ if glusterfs.found()
 endif
 config_host_data.set('CONFIG_GTK', gtk.found())
 config_host_data.set('CONFIG_VTE', vte.found())
+config_host_data.set('CONFIG_GTK_CLIPBOARD', have_gtk_clipboard)
 config_host_data.set('CONFIG_LIBATTR', have_old_libattr)
 config_host_data.set('CONFIG_LIBCAP_NG', libcap_ng.found())
 config_host_data.set('CONFIG_EBPF', libbpf.found())
diff --git a/scripts/meson-buildoptions.sh b/scripts/meson-buildoptions.sh
index 2cb0de5601ef..aa6e30ea911e 100644
--- a/scripts/meson-buildoptions.sh
+++ b/scripts/meson-buildoptions.sh
@@ -93,6 +93,7 @@ meson_options_help() {
   printf "%s\n" '  glusterfs       Glusterfs block device driver'
   printf "%s\n" '  gnutls          GNUTLS cryptography support'
   printf "%s\n" '  gtk             GTK+ user interface'
+  printf "%s\n" '  gtk-clipboard   clipboard support for GTK (EXPERIMENTAL, MAY HANG)'
   printf "%s\n" '  guest-agent     Build QEMU Guest Agent'
   printf "%s\n" '  guest-agent-msi Build MSI package for the QEMU Guest Agent'
   printf "%s\n" '  hax             HAX acceleration support'
@@ -274,6 +275,8 @@ _meson_option_parse() {
     --disable-gprof) printf "%s" -Dgprof=false ;;
     --enable-gtk) printf "%s" -Dgtk=enabled ;;
     --disable-gtk) printf "%s" -Dgtk=disabled ;;
+    --enable-gtk-clipboard) printf "%s" -Dgtk_clipboard=enabled ;;
+    --disable-gtk-clipboard) printf "%s" -Dgtk_clipboard=disabled ;;
     --enable-guest-agent) printf "%s" -Dguest_agent=enabled ;;
     --disable-guest-agent) printf "%s" -Dguest_agent=disabled ;;
     --enable-guest-agent-msi) printf "%s" -Dguest_agent_msi=enabled ;;
diff --git a/ui/meson.build b/ui/meson.build
index ec139497766a..c1b137bf330c 100644
--- a/ui/meson.build
+++ b/ui/meson.build
@@ -97,7 +97,10 @@ if gtk.found()
   softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
 
   gtk_ss = ss.source_set()
-  gtk_ss.add(gtk, vte, pixman, files('gtk.c', 'gtk-clipboard.c'))
+  gtk_ss.add(gtk, vte, pixman, files('gtk.c'))
+  if have_gtk_clipboard
+    gtk_ss.add(files('gtk-clipboard.c'))
+  endif
   gtk_ss.add(when: x11, if_true: files('x_keymap.c'))
   gtk_ss.add(when: opengl, if_true: files('gtk-gl-area.c'))
   gtk_ss.add(when: [x11, opengl], if_true: files('gtk-egl.c'))
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PULL 3/4] hw/usb/hcd-xhci.c: spelling: tranfer
  2022-11-24  7:15 [PULL 0/4] Fixes 20221124 patches Gerd Hoffmann
  2022-11-24  7:15 ` [PULL 1/4] Revert "usbredir: avoid queuing hello packet on snapshot restore" Gerd Hoffmann
  2022-11-24  7:16 ` [PULL 2/4] gtk: disable GTK Clipboard with a new meson option Gerd Hoffmann
@ 2022-11-24  7:16 ` Gerd Hoffmann
  2022-11-24  7:16 ` [PULL 4/4] ui/gtk: prevent ui lock up when dpy_gl_update called again before current draw event occurs Gerd Hoffmann
  2022-11-24 18:03 ` [PULL 0/4] Fixes 20221124 patches Stefan Hajnoczi
  4 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2022-11-24  7:16 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, Paolo Bonzini, Gerd Hoffmann,
	Thomas Huth, Marc-André Lureau, Daniel P. Berrangé,
	Michael Tokarev, Stefan Weil

From: Michael Tokarev <mjt@tls.msk.ru>

Fixes: effaf5a240e03020f4ae953e10b764622c3e87cc
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-Id: <20221105114851.306206-1-mjt@msgid.tls.msk.ru>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb/hcd-xhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index 8299f35e6695..b89b618ec210 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -796,7 +796,7 @@ static int xhci_ring_chain_length(XHCIState *xhci, const XHCIRing *ring)
          */
     } while (length < TRB_LINK_LIMIT * 65536 / TRB_SIZE);
 
-    qemu_log_mask(LOG_GUEST_ERROR, "%s: exceeded maximum tranfer ring size!\n",
+    qemu_log_mask(LOG_GUEST_ERROR, "%s: exceeded maximum transfer ring size!\n",
                           __func__);
 
     return -1;
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PULL 4/4] ui/gtk: prevent ui lock up when dpy_gl_update called again before current draw event occurs
  2022-11-24  7:15 [PULL 0/4] Fixes 20221124 patches Gerd Hoffmann
                   ` (2 preceding siblings ...)
  2022-11-24  7:16 ` [PULL 3/4] hw/usb/hcd-xhci.c: spelling: tranfer Gerd Hoffmann
@ 2022-11-24  7:16 ` Gerd Hoffmann
  2022-11-24 18:03 ` [PULL 0/4] Fixes 20221124 patches Stefan Hajnoczi
  4 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2022-11-24  7:16 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, Paolo Bonzini, Gerd Hoffmann,
	Thomas Huth, Marc-André Lureau, Daniel P. Berrangé,
	Dongwon Kim, Vivek Kasireddy

From: Dongwon Kim <dongwon.kim@intel.com>

A warning, "qemu: warning: console: no gl-unblock within" followed by
guest scanout lockup can happen if dpy_gl_update is called in a row
and the second call is made before gd_draw_event scheduled by the first
call is taking place. This is because draw call returns without decrementing
gl_block ref count if the dmabuf was already submitted as shown below.

(gd_gl_area_draw/gd_egl_draw)

        if (dmabuf) {
            if (!dmabuf->draw_submitted) {
                return;
            } else {
                dmabuf->draw_submitted = false;
            }
        }

So it should not schedule any redundant draw event in case draw_submitted is
already set in gd_egl_fluch/gd_gl_area_scanout_flush.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20221021192315.9110-1-dongwon.kim@intel.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 ui/gtk-egl.c     | 2 +-
 ui/gtk-gl-area.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/gtk-egl.c b/ui/gtk-egl.c
index 35f917ceb15e..e84431790c9b 100644
--- a/ui/gtk-egl.c
+++ b/ui/gtk-egl.c
@@ -341,7 +341,7 @@ void gd_egl_flush(DisplayChangeListener *dcl,
     VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
     GtkWidget *area = vc->gfx.drawing_area;
 
-    if (vc->gfx.guest_fb.dmabuf) {
+    if (vc->gfx.guest_fb.dmabuf && !vc->gfx.guest_fb.dmabuf->draw_submitted) {
         graphic_hw_gl_block(vc->gfx.dcl.con, true);
         vc->gfx.guest_fb.dmabuf->draw_submitted = true;
         gtk_widget_queue_draw_area(area, x, y, w, h);
diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c
index 682638a197d2..7696df1f6bc4 100644
--- a/ui/gtk-gl-area.c
+++ b/ui/gtk-gl-area.c
@@ -278,7 +278,7 @@ void gd_gl_area_scanout_flush(DisplayChangeListener *dcl,
 {
     VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
 
-    if (vc->gfx.guest_fb.dmabuf) {
+    if (vc->gfx.guest_fb.dmabuf && !vc->gfx.guest_fb.dmabuf->draw_submitted) {
         graphic_hw_gl_block(vc->gfx.dcl.con, true);
         vc->gfx.guest_fb.dmabuf->draw_submitted = true;
     }
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PULL 0/4] Fixes 20221124 patches
  2022-11-24  7:15 [PULL 0/4] Fixes 20221124 patches Gerd Hoffmann
                   ` (3 preceding siblings ...)
  2022-11-24  7:16 ` [PULL 4/4] ui/gtk: prevent ui lock up when dpy_gl_update called again before current draw event occurs Gerd Hoffmann
@ 2022-11-24 18:03 ` Stefan Hajnoczi
  2022-11-25  6:34   ` Gerd Hoffmann
  4 siblings, 1 reply; 8+ messages in thread
From: Stefan Hajnoczi @ 2022-11-24 18:03 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: qemu-devel, Philippe Mathieu-Daudé, Paolo Bonzini,
	Thomas Huth, Marc-André Lureau, Daniel P. Berrangé,
	Peter Maydell

On Thu, 24 Nov 2022 at 02:27, Gerd Hoffmann <kraxel@redhat.com> wrote:
>
> The following changes since commit 7c09a7f6ae1770d15535980d15dffdb23f4d9786:
>
>   Update VERSION for v7.2.0-rc2 (2022-11-22 18:59:56 -0500)
>
> are available in the Git repository at:
>
>   https://gitlab.com/kraxel/qemu.git tags/fixes-20221124-pull-request
>
> for you to fetch changes up to 64f1359bd08060ffe7a5689fdcbaeec6d8a59980:
>
>   ui/gtk: prevent ui lock up when dpy_gl_update called again before current draw event occurs (2022-11-23 12:27:55 +0100)
>
> ----------------------------------------------------------------
> usb+ui: fixes for 7.2

Hi Gerd,
I already applied your previous pull request so these patches are in
qemu.git/master. Do you want to revert the 8.0 patches that were
included in your previous pull request? I don't know how risky it is
to have them in 7.2. It's up to you.

7d3cf19548 hw/audio/intel-hda: Drop unnecessary prototype
3e95ef49e6 hw/audio/intel-hda: don't reset codecs twice
1dfb7a175f hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset()

Thanks,
Stefan

>
> ----------------------------------------------------------------
>
> Claudio Fontana (1):
>   gtk: disable GTK Clipboard with a new meson option
>
> Dongwon Kim (1):
>   ui/gtk: prevent ui lock up when dpy_gl_update called again before
>     current draw event occurs
>
> Joelle van Dyne (1):
>   Revert "usbredir: avoid queuing hello packet on snapshot restore"
>
> Michael Tokarev (1):
>   hw/usb/hcd-xhci.c: spelling: tranfer
>
>  meson_options.txt             | 7 +++++++
>  hw/usb/hcd-xhci.c             | 2 +-
>  hw/usb/redirect.c             | 3 +--
>  ui/gtk-egl.c                  | 2 +-
>  ui/gtk-gl-area.c              | 2 +-
>  ui/gtk.c                      | 2 ++
>  meson.build                   | 5 +++++
>  scripts/meson-buildoptions.sh | 3 +++
>  ui/meson.build                | 5 ++++-
>  9 files changed, 25 insertions(+), 6 deletions(-)
>
> --
> 2.38.1
>
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL 0/4] Fixes 20221124 patches
  2022-11-24 18:03 ` [PULL 0/4] Fixes 20221124 patches Stefan Hajnoczi
@ 2022-11-25  6:34   ` Gerd Hoffmann
  2022-11-25 10:56     ` Peter Maydell
  0 siblings, 1 reply; 8+ messages in thread
From: Gerd Hoffmann @ 2022-11-25  6:34 UTC (permalink / raw)
  To: Stefan Hajnoczi
  Cc: qemu-devel, Philippe Mathieu-Daudé, Paolo Bonzini,
	Thomas Huth, Marc-André Lureau, Daniel P. Berrangé,
	Peter Maydell

On Thu, Nov 24, 2022 at 01:03:21PM -0500, Stefan Hajnoczi wrote:
> On Thu, 24 Nov 2022 at 02:27, Gerd Hoffmann <kraxel@redhat.com> wrote:
> > usb+ui: fixes for 7.2
> 
> Hi Gerd,
> I already applied your previous pull request so these patches are in
> qemu.git/master. Do you want to revert the 8.0 patches that were
> included in your previous pull request? I don't know how risky it is
> to have them in 7.2. It's up to you.
> 
> 7d3cf19548 hw/audio/intel-hda: Drop unnecessary prototype
> 3e95ef49e6 hw/audio/intel-hda: don't reset codecs twice
> 1dfb7a175f hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset()

They look rather safe to me, Peter raised concerns though so I've
re-sent the pull with them dropped.

Peter?

take care,
  Gerd



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL 0/4] Fixes 20221124 patches
  2022-11-25  6:34   ` Gerd Hoffmann
@ 2022-11-25 10:56     ` Peter Maydell
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Maydell @ 2022-11-25 10:56 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: Stefan Hajnoczi, qemu-devel, Philippe Mathieu-Daudé,
	Paolo Bonzini, Thomas Huth, Marc-André Lureau,
	Daniel P. Berrangé

On Fri, 25 Nov 2022 at 06:34, Gerd Hoffmann <kraxel@redhat.com> wrote:
>
> On Thu, Nov 24, 2022 at 01:03:21PM -0500, Stefan Hajnoczi wrote:
> > On Thu, 24 Nov 2022 at 02:27, Gerd Hoffmann <kraxel@redhat.com> wrote:
> > > usb+ui: fixes for 7.2
> >
> > Hi Gerd,
> > I already applied your previous pull request so these patches are in
> > qemu.git/master. Do you want to revert the 8.0 patches that were
> > included in your previous pull request? I don't know how risky it is
> > to have them in 7.2. It's up to you.
> >
> > 7d3cf19548 hw/audio/intel-hda: Drop unnecessary prototype
> > 3e95ef49e6 hw/audio/intel-hda: don't reset codecs twice
> > 1dfb7a175f hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset()
>
> They look rather safe to me, Peter raised concerns though so I've
> re-sent the pull with them dropped.
>
> Peter?

Stefan's point is that they're already upstream, so if you don't
want them you now need to send a pull with reverts in.

I think the patches should be OK, but the trouble with all
this reset stuff is that there are sometimes hidden
dependencies on exact ordering or I missed some interaction
with an old bit of the reset handling; and basic 'make check'
style testing doesn't always catch "this works fine until
the guest is rebooted and then it breaks on reboot" or
similar scenarios. So I was targeting 8.0 as the "safe option".

thanks
-- PMM


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-25 10:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-24  7:15 [PULL 0/4] Fixes 20221124 patches Gerd Hoffmann
2022-11-24  7:15 ` [PULL 1/4] Revert "usbredir: avoid queuing hello packet on snapshot restore" Gerd Hoffmann
2022-11-24  7:16 ` [PULL 2/4] gtk: disable GTK Clipboard with a new meson option Gerd Hoffmann
2022-11-24  7:16 ` [PULL 3/4] hw/usb/hcd-xhci.c: spelling: tranfer Gerd Hoffmann
2022-11-24  7:16 ` [PULL 4/4] ui/gtk: prevent ui lock up when dpy_gl_update called again before current draw event occurs Gerd Hoffmann
2022-11-24 18:03 ` [PULL 0/4] Fixes 20221124 patches Stefan Hajnoczi
2022-11-25  6:34   ` Gerd Hoffmann
2022-11-25 10:56     ` Peter Maydell

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).