]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/msi: prevent watchdog triggering when dumping MSI state
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 17 May 2024 13:56:05 +0000 (15:56 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 20 May 2024 13:29:44 +0000 (14:29 +0100)
Use the same check that's used in dump_irqs().

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Release-acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/msi.c

index 19830528b65aef0b99aa47131128102933d60522..0c97fbb3fc03fee71cbd260db56241e0847034fe 100644 (file)
@@ -17,6 +17,7 @@
 #include <xen/param.h>
 #include <xen/pci.h>
 #include <xen/pci_regs.h>
+#include <xen/softirq.h>
 #include <xen/iocap.h>
 #include <xen/keyhandler.h>
 #include <xen/pfn.h>
@@ -1451,6 +1452,9 @@ static void cf_check dump_msi(unsigned char key)
         unsigned long flags;
         const char *type = "???";
 
+        if ( !(irq & 0x1f) )
+            process_pending_softirqs();
+
         if ( !irq_desc_initialized(desc) )
             continue;