freebsd-nq/sys/contrib
Konstantin Belousov 4c918926cd Add x2APIC support. Enable it by default if CPU is capable. The
hw.x2apic_enable tunable allows disabling it from the loader prompt.

To closely repeat effects of the uncached memory ops when accessing
registers in the xAPIC mode, the x2APIC writes to MSRs are preceeded
by mfence, except for the EOI notifications.  This is probably too
strict, only ICR writes to send IPI require serialization to ensure
that other CPUs see the previous actions when IPI is delivered.  This
may be changed later.

In vmm justreturn IPI handler, call doreti_iret instead of doing iretd
inline, to handle corner conditions.

Note that the patch only switches LAPICs into x2APIC mode. It does not
enables FreeBSD to support > 255 CPUs, which requires parsing x2APIC
MADT entries and doing interrupts remapping, but is the required step
on the way.

Reviewed by:	neel
Tested by:	pho (real hardware), neel (on bhyve)
Discussed with:	jhb, grehan
Sponsored by:	The FreeBSD Foundation
MFC after:	2 months
2015-02-09 21:00:56 +00:00
..
altq/altq Remove ifq_drops from struct ifqueue. Now queue drops are accounted in 2014-09-19 09:01:19 +00:00
dev Add x2APIC support. Enable it by default if CPU is capable. The 2015-02-09 21:00:56 +00:00
ipfilter/netinet In order to reduce use of M_EXT outside of the mbuf allocator and 2015-01-06 12:59:37 +00:00
libfdt
ngatm Fix the following -Werror warning from clang 3.5.0, while building 2014-11-19 07:47:37 +00:00
octeon-sdk
rdma/krping Add missing linuxapi module dependencies and always use the FreeBSD 2015-01-19 21:53:00 +00:00
v4l Fix build for gcc users by declaring variables for unions in structs which 2013-07-10 10:40:52 +00:00
vchiq/interface Do not mark shared structures as __packed, it leads to race condition 2015-02-09 02:31:27 +00:00
x86emu Fix decoding of near CALL when address-size prefix (67h) is present. 2014-06-11 20:38:14 +00:00
xz-embedded MFV r262756: 2014-03-05 01:33:15 +00:00