freebsd-nq/sys/x86/xen
Konstantin Belousov 36596c2a29 Detect x2APIC mode on boot and obey it.
If BIOS performed hand-off to OS with BSP LAPIC in the x2APIC mode,
system usually consumes such configuration without a notice, since
x2APIC is turned on by OS if possible (nop).  But if BIOS
simultaneously requested OS to not use x2APIC, code assumption that
that xAPIC is active breaks.

In my opinion, we cannot safely turn off x2APIC if control is passed
in this mode.  Make madt.c ignore user or BIOS requests to turn x2APIC
off, and do not check the x2APIC black list.  Just trust the config
and try to continue, giving a warning in dmesg.

Reported and tested by:	Slawa Olhovchenkov <slw@zxy.spb.ru> (previous version)
Diagnosed by and discussed with:	avg
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2016-09-19 15:58:45 +00:00
..
hvm.c Fix build for !SMP kernels after the Xen MSIX workaround. 2016-08-22 21:23:17 +00:00
pv.c Remove misc NULL checks after M_WAITOK allocations. 2016-05-10 10:26:07 +00:00
pvcpu_enum.c
xen_apic.c Detect x2APIC mode on boot and obey it. 2016-09-19 15:58:45 +00:00
xen_intr.c xen-intr: fix removal of event channels during resume 2016-07-29 16:34:54 +00:00
xen_msi.c
xen_nexus.c Remove support for Xen PV domU kernels. Support for HVM domU kernels 2015-04-30 15:48:48 +00:00
xen_pci_bus.c
xenpv.c Replace all resource occurrences of '0UL/~0UL' with '0/~0'. 2016-03-03 05:07:35 +00:00