Skip to contentSkip to conversation

x86/msi: prevent watchdog triggering when dumping MSI state

PATCH In review Roger Pau Monne 3 participants 3 messages May 17, 2024 – May 20, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/msi: prevent watchdog triggering when dumping MSI state

Use the same check that's used in dump_irqs().

---
 xen/arch/x86/msi.c | 4 ++++
 1 file changed, 4 insertions(+)
xen/arch/x86/msi.c +4 -0
index 19830528b65a..0c97fbb3fc03 100644
@@ -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;
 
Signature · 1 line
2.44.0
#1 lore raw
Quoted 23 lines · Roger Pau Monne

Use the same check that's used in dump_irqs().

---
 xen/arch/x86/msi.c | 4 ++++

 1 file changed, 4 insertions(+)
xen/arch/x86/msi.c +1 -0
index 19830528b65a..0c97fbb3fc03 100644
@@ -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 = "???";
Quoted 7 lines


+        if ( !(irq & 0x1f) )
+            process_pending_softirqs();
+
         if ( !irq_desc_initialized(desc) )
             continue;

~ Oleksii