]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
x86/xen: Add a no_vector_callback option to test PCI INTX delivery
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 24 Dec 2020 11:34:52 +0000 (11:34 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 5 Jan 2021 23:31:25 +0000 (23:31 +0000)
It's useful to be able to test non-vector event channel delivery, to make
sure Linux will work properly on older Xen which doesn't have it.

It's also useful for those working on Xen and Xen-compatible hypervisors,
because there are guest kernels still in active use which use PCI INTX
even when vector delivery is available.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Documentation/admin-guide/kernel-parameters.txt
arch/x86/xen/enlighten_hvm.c

index c722ec19cd00485ceb9ba4dfce2cf9c5d2deb1d0..35b10982d3637ba91e85887e7963f53e3bd559fb 100644 (file)
 
        nosync          [HW,M68K] Disables sync negotiation for all devices.
 
+       no_vector_callback
+                       [KNL,X86,XEN] Disable the vector callback for Xen
+                       event channel interrupts.
+
        nowatchdog      [KNL] Disable both lockup detectors, i.e.
                        soft-lockup and NMI watchdog (hard-lockup).
 
index 9e87ab010c82bbbe02798d17be75ba6171d199f6..a1c07e0c888e4e51f1d6568782726106f64e5e6d 100644 (file)
@@ -188,6 +188,8 @@ static int xen_cpu_dead_hvm(unsigned int cpu)
        return 0;
 }
 
+static bool no_vector_callback __initdata;
+
 static void __init xen_hvm_guest_init(void)
 {
        if (xen_pv_domain())
@@ -207,7 +209,7 @@ static void __init xen_hvm_guest_init(void)
 
        xen_panic_handler_init();
 
-       if (xen_feature(XENFEAT_hvm_callback_vector))
+       if (!no_vector_callback && xen_feature(XENFEAT_hvm_callback_vector))
                xen_have_vector_callback = 1;
 
        xen_hvm_smp_init();
@@ -233,6 +235,13 @@ static __init int xen_parse_nopv(char *arg)
 }
 early_param("xen_nopv", xen_parse_nopv);
 
+static __init int xen_parse_no_vector_callback(char *arg)
+{
+       no_vector_callback = true;
+       return 0;
+}
+early_param("no_vector_callback", xen_parse_no_vector_callback);
+
 bool __init xen_hvm_need_lapic(void)
 {
        if (xen_pv_domain())