For now, disable x2APIC mode when Xen is detected, even if CPU

declares support for it.  Newer versions of Xen works fine with x2APIC
code, but e.g. Xen 4.2 delivers GPF on the LAPIC MSR write, despite
x2APIC mode being known to hypervisor.

Discussed with:	royger
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2015-02-25 16:44:07 +00:00
parent 3e6d2e9b4e
commit 45bc78eb45

View File

@ -158,6 +158,8 @@ madt_setup_local(void)
printf(
"x2APIC available but disabled inside VMWare without intr redirection\n");
}
} else if (vm_guest == VM_GUEST_XEN) {
x2apic_mode = 0;
}
TUNABLE_INT_FETCH("hw.x2apic_enable", &x2apic_mode);
}