[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH RFC Linux] x86/xen: allow using x2APIC under Xen without CONFIG_XEN enabled



While commit 4cca6ea04d31c claims to not have any functional effect on
Xen, this isn't the case: Before that change, kernels built without
CONFIG_XEN_PVHVM (a dependency which meanwhile became just CONFIG_XEN)
were able to run in x2APIC mode just fine. Restore that behavior.

This, however, still doesn't fix the case where CONFIG_HYPERVISOR_GUEST
is not enabled, but I suppose this may be regarded as intentional.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
The patch is RFC solely because the way the issue gets fixed doesn't
look very neat, but I couldn't figure out a better way.
---
 arch/x86/kernel/cpu/hypervisor.c |    4 ++++
 1 file changed, 4 insertions(+)

--- 4.2-rc7/arch/x86/kernel/cpu/hypervisor.c
+++ 4.2-rc7-x86-xen-x2apic-available/arch/x86/kernel/cpu/hypervisor.c
@@ -81,6 +81,10 @@ void __init init_hypervisor_platform(voi
 
 bool __init hypervisor_x2apic_available(void)
 {
+#ifndef CONFIG_XEN
+       if (xen_x2apic_para_available())
+               return true;
+#endif
        return x86_hyper                   &&
               x86_hyper->x2apic_available &&
               x86_hyper->x2apic_available();




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.