s390x/pci: Fix interrupt forwarding disable for interpreted devices
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> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com> Tested-by: Omar Elghoul <oelghoul@linux.ibm.com> Message-ID: <20260521182946.1607-1-alifm@linux.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Farhan Ali committed
May 21, 2026 at 11:29 UTC
442f727b8bebabf20a4f6a7536a4ff2885402030
1 file changed
+1
-1
hw/s390x/s390-pci-bus.c
+1
-1
@@ -1504,7 +1504,7 @@ static void s390_pci_device_reset(DeviceState *dev)
1504
break;
1505
}
1506
1507
- if (pbdev->interp && (pbdev->fh & FH_MASK_ENABLE)) {
1507
+ if (pbdev->interp) {
1508
/* Interpreted devices were using interrupt forwarding */
1509
s390_pci_kvm_aif_disable(pbdev);
1510
} else if (pbdev->summary_ind) {