blob: 8bcc63ffcce4c5a178a4daaf1c971f81224413ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
From 1ffb29d132600e6a7965c2885505615a6fd6c647 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= <roger.pau@citrix.com>
Date: Wed, 26 Jun 2024 13:36:52 +0200
Subject: [PATCH 21/56] x86/msi: prevent watchdog triggering when dumping MSI
state
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Use the same check that's used in dump_irqs().
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 594b22ca5be681ec1b42c34f321cc2600d582210
master date: 2024-05-20 14:29:44 +0100
---
xen/arch/x86/msi.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xen/arch/x86/msi.c b/xen/arch/x86/msi.c
index a78367d7cf..3eaeffd1e0 100644
--- a/xen/arch/x86/msi.c
+++ b/xen/arch/x86/msi.c
@@ -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>
@@ -1405,6 +1406,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;
--
2.45.2
|