All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] s390x/pci: Fix interrupt forwarding disable for interpreted devices
@ 2026-05-21 18:29 Farhan Ali
  2026-05-22 18:47 ` Omar Elghoul
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Farhan Ali @ 2026-05-21 18:29 UTC (permalink / raw)
  To: qemu-s390x, qemu-devel
  Cc: mjrosato, farman, cohuck, alifm, qemu-stable, Niklas Schnelle

Remove the FH_MASK_ENABLE check when disabling interrupt forwarding
during device reset. This check was broken for the default case in
the switch statement above, preventing proper cleanup of interrupt
forwarding.

The pbdev->aif check in s390_pci_kvm_aif_disable() already guards
against double-disabling of interrupt forwarding.

Cc: qemu-stable@nongnu.org
Reported-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Farhan Ali <alifm@linux.ibm.com>
---
 hw/s390x/s390-pci-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c
index 3665aba106..2f7b214891 100644
--- a/hw/s390x/s390-pci-bus.c
+++ b/hw/s390x/s390-pci-bus.c
@@ -1542,7 +1542,7 @@ static void s390_pci_device_reset(DeviceState *dev)
         break;
     }
 
-    if (pbdev->interp && (pbdev->fh & FH_MASK_ENABLE)) {
+    if (pbdev->interp) {
         /* Interpreted devices were using interrupt forwarding */
         s390_pci_kvm_aif_disable(pbdev);
     } else if (pbdev->summary_ind) {
-- 
2.43.0



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

end of thread, other threads:[~2026-05-29 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-21 18:29 [PATCH v1] s390x/pci: Fix interrupt forwarding disable for interpreted devices Farhan Ali
2026-05-22 18:47 ` Omar Elghoul
2026-05-22 18:50 ` Matthew Rosato
2026-05-29 14:02 ` Cornelia Huck

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.