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

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-20221123-pull-request

for you to fetch changes up to 7d3cf19548b7f9afd9d25c30dd1450aad7d1877d:

  hw/audio/intel-hda: Drop unnecessary prototype (2022-11-23 12:30:45 +0100)

----------------------------------------------------------------
ui+usb+audio: bugfixes 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

Peter Maydell (3):
  hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset()
  hw/audio/intel-hda: don't reset codecs twice
  hw/audio/intel-hda: Drop unnecessary prototype

 meson_options.txt             | 7 +++++++
 hw/audio/intel-hda.c          | 6 +-----
 hw/usb/hcd-xhci-pci.c         | 2 +-
 hw/usb/hcd-xhci-sysbus.c      | 2 +-
 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 ++++-
 12 files changed, 28 insertions(+), 13 deletions(-)

-- 
2.38.1



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

* [PULL 1/7] Revert "usbredir: avoid queuing hello packet on snapshot restore"
  2022-11-23 14:44 [PULL 0/7] Fixes 20221123 patches Gerd Hoffmann
@ 2022-11-23 14:44 ` Gerd Hoffmann
  2022-11-23 14:44 ` [PULL 2/7] gtk: disable GTK Clipboard with a new meson option Gerd Hoffmann
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Gerd Hoffmann @ 2022-11-23 14:44 UTC (permalink / raw)
  To: qemu-devel
  Cc: Gerd Hoffmann, Philippe Mathieu-Daudé,
	Thomas Huth, Daniel P. Berrangé,
	Paolo Bonzini, Marc-André Lureau, 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] 11+ messages in thread

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

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

* [PULL 4/7] ui/gtk: prevent ui lock up when dpy_gl_update called again before current draw event occurs
  2022-11-23 14:44 [PULL 0/7] Fixes 20221123 patches Gerd Hoffmann
                   ` (2 preceding siblings ...)
  2022-11-23 14:44 ` [PULL 3/7] hw/usb/hcd-xhci.c: spelling: tranfer Gerd Hoffmann
@ 2022-11-23 14:44 ` Gerd Hoffmann
  2022-11-23 14:44 ` [PULL 5/7] hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset() Gerd Hoffmann
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Gerd Hoffmann @ 2022-11-23 14:44 UTC (permalink / raw)
  To: qemu-devel
  Cc: Gerd Hoffmann, Philippe Mathieu-Daudé,
	Thomas Huth, Daniel P. Berrangé,
	Paolo Bonzini, Marc-André Lureau, 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] 11+ messages in thread

* [PULL 5/7] hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset()
  2022-11-23 14:44 [PULL 0/7] Fixes 20221123 patches Gerd Hoffmann
                   ` (3 preceding siblings ...)
  2022-11-23 14:44 ` [PULL 4/7] ui/gtk: prevent ui lock up when dpy_gl_update called again before current draw event occurs Gerd Hoffmann
@ 2022-11-23 14:44 ` Gerd Hoffmann
  2022-11-23 14:44 ` [PULL 6/7] hw/audio/intel-hda: don't reset codecs twice Gerd Hoffmann
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Gerd Hoffmann @ 2022-11-23 14:44 UTC (permalink / raw)
  To: qemu-devel
  Cc: Gerd Hoffmann, Philippe Mathieu-Daudé,
	Thomas Huth, Daniel P. Berrangé,
	Paolo Bonzini, Marc-André Lureau, Peter Maydell

From: Peter Maydell <peter.maydell@linaro.org>

Currently the hcd-xhci-pci and hcd-xhci-sysbus devices, which are
mostly wrappers around the TYPE_XHCI device, which is a direct
subclass of TYPE_DEVICE.  Since TYPE_DEVICE devices are not on any
qbus and do not get automatically reset, the wrapper devices both
reset the TYPE_XHCI device in their own reset functions.  However,
they do this using device_legacy_reset(), which will reset the device
itself but not any bus it has.

Switch to device_cold_reset(), which avoids using a deprecated
function and also propagates reset along any child buses.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20221014145423.2102706-1-peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb/hcd-xhci-pci.c    | 2 +-
 hw/usb/hcd-xhci-sysbus.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/usb/hcd-xhci-pci.c b/hw/usb/hcd-xhci-pci.c
index e934b1a5b1fb..643d4643e4d6 100644
--- a/hw/usb/hcd-xhci-pci.c
+++ b/hw/usb/hcd-xhci-pci.c
@@ -85,7 +85,7 @@ static void xhci_pci_reset(DeviceState *dev)
 {
     XHCIPciState *s = XHCI_PCI(dev);
 
-    device_legacy_reset(DEVICE(&s->xhci));
+    device_cold_reset(DEVICE(&s->xhci));
 }
 
 static int xhci_pci_vmstate_post_load(void *opaque, int version_id)
diff --git a/hw/usb/hcd-xhci-sysbus.c b/hw/usb/hcd-xhci-sysbus.c
index a14e4381960e..faf57b47975d 100644
--- a/hw/usb/hcd-xhci-sysbus.c
+++ b/hw/usb/hcd-xhci-sysbus.c
@@ -29,7 +29,7 @@ void xhci_sysbus_reset(DeviceState *dev)
 {
     XHCISysbusState *s = XHCI_SYSBUS(dev);
 
-    device_legacy_reset(DEVICE(&s->xhci));
+    device_cold_reset(DEVICE(&s->xhci));
 }
 
 static void xhci_sysbus_realize(DeviceState *dev, Error **errp)
-- 
2.38.1



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

* [PULL 6/7] hw/audio/intel-hda: don't reset codecs twice
  2022-11-23 14:44 [PULL 0/7] Fixes 20221123 patches Gerd Hoffmann
                   ` (4 preceding siblings ...)
  2022-11-23 14:44 ` [PULL 5/7] hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset() Gerd Hoffmann
@ 2022-11-23 14:44 ` Gerd Hoffmann
  2022-11-23 14:44 ` [PULL 7/7] hw/audio/intel-hda: Drop unnecessary prototype Gerd Hoffmann
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Gerd Hoffmann @ 2022-11-23 14:44 UTC (permalink / raw)
  To: qemu-devel
  Cc: Gerd Hoffmann, Philippe Mathieu-Daudé,
	Thomas Huth, Daniel P. Berrangé,
	Paolo Bonzini, Marc-André Lureau, Peter Maydell

From: Peter Maydell <peter.maydell@linaro.org>

Currently the intel-hda device has a reset method which manually
resets all the codecs by calling device_legacy_reset() on them.  This
means they get reset twice, once because child devices on a qbus get
reset before the parent device's reset method is called, and then
again because we're manually resetting them.

Drop the manual reset call, and ensure that codecs are still reset
when the guest does a reset via ICH6_GCTL_RESET by using
device_cold_reset() (which resets all the devices on the qbus as well
as the device itself) instead of a direct call to the reset function.

This is a slight ordering change because the (only) codec reset now
happens before the controller registers etc are reset, rather than
once before and then once after, but the codec reset function
hda_audio_reset() doesn't care.

This lets us drop a use of device_legacy_reset(), which is
deprecated.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221014142632.2092404-2-peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/audio/intel-hda.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c
index f38117057b9b..38cfa20262e2 100644
--- a/hw/audio/intel-hda.c
+++ b/hw/audio/intel-hda.c
@@ -516,7 +516,7 @@ static void intel_hda_notify_codecs(IntelHDAState *d, uint32_t stream, bool runn
 static void intel_hda_set_g_ctl(IntelHDAState *d, const IntelHDAReg *reg, uint32_t old)
 {
     if ((d->g_ctl & ICH6_GCTL_RESET) == 0) {
-        intel_hda_reset(DEVICE(d));
+        device_cold_reset(DEVICE(d));
     }
 }
 
@@ -1083,11 +1083,9 @@ static void intel_hda_reset(DeviceState *dev)
     intel_hda_regs_reset(d);
     d->wall_base_ns = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
 
-    /* reset codecs */
     QTAILQ_FOREACH(kid, &d->codecs.qbus.children, sibling) {
         DeviceState *qdev = kid->child;
         cdev = HDA_CODEC_DEVICE(qdev);
-        device_legacy_reset(DEVICE(cdev));
         d->state_sts |= (1 << cdev->cad);
     }
     intel_hda_update_irq(d);
-- 
2.38.1



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

* [PULL 7/7] hw/audio/intel-hda: Drop unnecessary prototype
  2022-11-23 14:44 [PULL 0/7] Fixes 20221123 patches Gerd Hoffmann
                   ` (5 preceding siblings ...)
  2022-11-23 14:44 ` [PULL 6/7] hw/audio/intel-hda: don't reset codecs twice Gerd Hoffmann
@ 2022-11-23 14:44 ` Gerd Hoffmann
  2022-11-23 20:47 ` [PULL 0/7] Fixes 20221123 patches Peter Maydell
  2022-11-23 21:57 ` Stefan Hajnoczi
  8 siblings, 0 replies; 11+ messages in thread
From: Gerd Hoffmann @ 2022-11-23 14:44 UTC (permalink / raw)
  To: qemu-devel
  Cc: Gerd Hoffmann, Philippe Mathieu-Daudé,
	Thomas Huth, Daniel P. Berrangé,
	Paolo Bonzini, Marc-André Lureau, Peter Maydell

From: Peter Maydell <peter.maydell@linaro.org>

The only use of intel_hda_reset() is after its definition, so we
don't need to separately declare its prototype at the top of the
file; drop the unnecessary line.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221014142632.2092404-3-peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/audio/intel-hda.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c
index 38cfa20262e2..b9ed231fe849 100644
--- a/hw/audio/intel-hda.c
+++ b/hw/audio/intel-hda.c
@@ -220,8 +220,6 @@ struct IntelHDAReg {
     void       (*rhandler)(IntelHDAState *d, const IntelHDAReg *reg);
 };
 
-static void intel_hda_reset(DeviceState *dev);
-
 /* --------------------------------------------------------------------- */
 
 static hwaddr intel_hda_addr(uint32_t lbase, uint32_t ubase)
-- 
2.38.1



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

* Re: [PULL 0/7] Fixes 20221123 patches
  2022-11-23 14:44 [PULL 0/7] Fixes 20221123 patches Gerd Hoffmann
                   ` (6 preceding siblings ...)
  2022-11-23 14:44 ` [PULL 7/7] hw/audio/intel-hda: Drop unnecessary prototype Gerd Hoffmann
@ 2022-11-23 20:47 ` Peter Maydell
  2022-11-23 21:57 ` Stefan Hajnoczi
  8 siblings, 0 replies; 11+ messages in thread
From: Peter Maydell @ 2022-11-23 20:47 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: qemu-devel, Philippe Mathieu-Daudé,
	Thomas Huth, Daniel P. Berrangé,
	Paolo Bonzini, Marc-André Lureau

On Wed, 23 Nov 2022 at 14:45, 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-20221123-pull-request
>
> for you to fetch changes up to 7d3cf19548b7f9afd9d25c30dd1450aad7d1877d:
>
>   hw/audio/intel-hda: Drop unnecessary prototype (2022-11-23 12:30:45 +0100)
>
> ----------------------------------------------------------------
> ui+usb+audio: bugfixes 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
>
> Peter Maydell (3):
>   hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset()
>   hw/audio/intel-hda: don't reset codecs twice
>   hw/audio/intel-hda: Drop unnecessary prototype

That reset-related series was for-8.0 material, it shouldn't be in
a pullreq at this point in the release cycle I think.

thanks
-- PMM


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

* Re: [PULL 0/7] Fixes 20221123 patches
  2022-11-23 14:44 [PULL 0/7] Fixes 20221123 patches Gerd Hoffmann
                   ` (7 preceding siblings ...)
  2022-11-23 20:47 ` [PULL 0/7] Fixes 20221123 patches Peter Maydell
@ 2022-11-23 21:57 ` Stefan Hajnoczi
  2022-11-24 11:54   ` Peter Maydell
  8 siblings, 1 reply; 11+ messages in thread
From: Stefan Hajnoczi @ 2022-11-23 21:57 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: qemu-devel, Gerd Hoffmann, Philippe Mathieu-Daudé,
	Thomas Huth, Daniel P. Berrangé,
	Paolo Bonzini, Marc-André Lureau

[-- Attachment #1: Type: text/plain, Size: 115 bytes --]

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/7.2 for any user-visible changes.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PULL 0/7] Fixes 20221123 patches
  2022-11-23 21:57 ` Stefan Hajnoczi
@ 2022-11-24 11:54   ` Peter Maydell
  0 siblings, 0 replies; 11+ messages in thread
From: Peter Maydell @ 2022-11-24 11:54 UTC (permalink / raw)
  To: Stefan Hajnoczi
  Cc: Gerd Hoffmann, qemu-devel, Philippe Mathieu-Daudé,
	Thomas Huth, Daniel P. Berrangé,
	Paolo Bonzini, Marc-André Lureau

On Wed, 23 Nov 2022 at 21:58, Stefan Hajnoczi <stefanha@redhat.com> wrote:
>
> Applied, thanks.
>
> Please update the changelog at https://wiki.qemu.org/ChangeLog/7.2 for any user-visible changes.

...that pullreq had for-8.0 patches in it. I dunno if they're
so risky that we ought to revert them, though.

-- PMM


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

end of thread, other threads:[~2022-11-24 11:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-23 14:44 [PULL 0/7] Fixes 20221123 patches Gerd Hoffmann
2022-11-23 14:44 ` [PULL 1/7] Revert "usbredir: avoid queuing hello packet on snapshot restore" Gerd Hoffmann
2022-11-23 14:44 ` [PULL 2/7] gtk: disable GTK Clipboard with a new meson option Gerd Hoffmann
2022-11-23 14:44 ` [PULL 3/7] hw/usb/hcd-xhci.c: spelling: tranfer Gerd Hoffmann
2022-11-23 14:44 ` [PULL 4/7] ui/gtk: prevent ui lock up when dpy_gl_update called again before current draw event occurs Gerd Hoffmann
2022-11-23 14:44 ` [PULL 5/7] hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset() Gerd Hoffmann
2022-11-23 14:44 ` [PULL 6/7] hw/audio/intel-hda: don't reset codecs twice Gerd Hoffmann
2022-11-23 14:44 ` [PULL 7/7] hw/audio/intel-hda: Drop unnecessary prototype Gerd Hoffmann
2022-11-23 20:47 ` [PULL 0/7] Fixes 20221123 patches Peter Maydell
2022-11-23 21:57 ` Stefan Hajnoczi
2022-11-24 11:54   ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.