7f6bd728fd
xend-cpuid.patch - Rename 2XXXX-vif-bridge.patch -> vif-bridge-tap-fix.patch - bnc#747331 - XEN: standard "newburn" kernel QA stress test on guest (+ smartd on Dom0?) freezes the guest 24883-x86-guest-walk-not-present.patch - bnc#745367 - MCE bank handling during migration 24781-x86-vmce-mcg_ctl.patch 24886-x86-vmce-mcg_ctl-default.patch 24887-x86-vmce-sr.patch - bnc#744771 - L3: VM with passed through PCI card fails to reboot under dom0 load 24888-pci-release-devices.patch - Upstream patches from Jan 24517-VT-d-fault-softirq.patch 24527-AMD-Vi-fault-softirq.patch 24535-x86-vMSI-misc.patch 24615-VESA-lfb-flush.patch 24690-x86-PCI-SERR-no-deadlock.patch 24701-gnttab-map-grant-ref-recovery.patch 24742-gnttab-misc.patch 24780-x86-paging-use-clear_guest.patch 24805-x86-MSI-X-dom0-ro.patch ioemu-9869-MSI-X-init.patch ioemu-9873-MSI-X-fix-unregister_iomem.patch - bnc#745005 - Update vif configuration examples in xmexample* Updated xen-xmexample.diff OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=172
68 lines
2.1 KiB
Diff
68 lines
2.1 KiB
Diff
# HG changeset patch
|
|
# User David Vrabel <david.vrabel@citrix.com>
|
|
# Date 1328196538 0
|
|
# Node ID dcc6d57e4c07728693c685a2cfa7f094ef726267
|
|
# Parent 7091b2e4cc2cff07ad1bf24ba7b9506bae071fa8
|
|
x86: avoid deadlock after a PCI SERR NMI
|
|
|
|
If a PCI System Error (SERR) is asserted it causes an NMI. If this NMI
|
|
occurs while the CPU is in printk() then Xen may deadlock as
|
|
pci_serr_error() calls console_force_unlock() which screws up the
|
|
console lock.
|
|
|
|
printk() isn't safe to call from NMI context so defer the diagnostic
|
|
message to a softirq.
|
|
|
|
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
|
|
Tested-by: George Dunlap <george.dunlap@eu.citrix.com>
|
|
Committed-by: Keir Fraser <keir@xen.org>
|
|
|
|
--- a/xen/arch/x86/traps.c
|
|
+++ b/xen/arch/x86/traps.c
|
|
@@ -3137,6 +3137,11 @@ static void nmi_mce_softirq(void)
|
|
st->vcpu = NULL;
|
|
}
|
|
|
|
+static void pci_serr_softirq(void)
|
|
+{
|
|
+ printk("\n\nNMI - PCI system error (SERR)\n");
|
|
+}
|
|
+
|
|
void async_exception_cleanup(struct vcpu *curr)
|
|
{
|
|
int trap;
|
|
@@ -3223,10 +3228,11 @@ static void nmi_dom0_report(unsigned int
|
|
|
|
static void pci_serr_error(struct cpu_user_regs *regs)
|
|
{
|
|
- console_force_unlock();
|
|
- printk("\n\nNMI - PCI system error (SERR)\n");
|
|
-
|
|
outb((inb(0x61) & 0x0f) | 0x04, 0x61); /* clear-and-disable the PCI SERR error line. */
|
|
+
|
|
+ /* Would like to print a diagnostic here but can't call printk()
|
|
+ from NMI context -- raise a softirq instead. */
|
|
+ raise_softirq(PCI_SERR_SOFTIRQ);
|
|
}
|
|
|
|
static void io_check_error(struct cpu_user_regs *regs)
|
|
@@ -3529,6 +3535,7 @@ void __init trap_init(void)
|
|
cpu_init();
|
|
|
|
open_softirq(NMI_MCE_SOFTIRQ, nmi_mce_softirq);
|
|
+ open_softirq(PCI_SERR_SOFTIRQ, pci_serr_softirq);
|
|
}
|
|
|
|
long register_guest_nmi_callback(unsigned long address)
|
|
--- a/xen/include/asm-x86/softirq.h
|
|
+++ b/xen/include/asm-x86/softirq.h
|
|
@@ -6,6 +6,7 @@
|
|
#define VCPU_KICK_SOFTIRQ (NR_COMMON_SOFTIRQS + 2)
|
|
|
|
#define MACHINE_CHECK_SOFTIRQ (NR_COMMON_SOFTIRQS + 3)
|
|
-#define NR_ARCH_SOFTIRQS 4
|
|
+#define PCI_SERR_SOFTIRQ (NR_COMMON_SOFTIRQS + 4)
|
|
+#define NR_ARCH_SOFTIRQS 5
|
|
|
|
#endif /* __ASM_SOFTIRQ_H__ */
|