freebsd-dev/sys/x86
Konstantin Belousov 2624320fcc Stop masking FSGSBASE and SMEP features under monitors.
Not enabling FSGSBASE in %cr4 does not prevent reporting of the
feature by the CPUID instruction (blame Int*l).  As result, kernels
which were run under monitors pretended that usermode cannot modify
TLS base without the syscall, while libc noted right combination of
capable CPU and the new kernel version, trying to use the WRFSBASE
instruction.

Really old hypervisors that cannot handle enablement of these features
in %cr4 would require the manual configuration, by setting the loader
tunable hw.cpu_stdext_disable=0x81

Reported by:	lwhsu, mjoras
Sponsored by:	The FreeBSD Foundation
MFC after:	18 days
2017-08-24 10:57:34 +00:00
..
acpica Fix off-by-one error when parsing SRAT table. 2017-08-22 19:56:30 +00:00
bios
cpufreq hwpstate: Add support for family 17h pstate info from MSRs 2017-08-20 00:41:49 +00:00
include x86: bump MAX_APIC_ID to 512 2017-08-10 09:16:40 +00:00
iommu Clean up MD pollution of bus_dma.h: 2017-07-01 05:35:29 +00:00
isa Stop calling atrtc_set() from the xen timer clock_settime() method. That 2017-08-11 19:02:11 +00:00
pci Convert PCIe Hot Plug to using pci_request_feature 2017-02-25 06:11:59 +00:00
x86 Stop masking FSGSBASE and SMEP features under monitors. 2017-08-24 10:57:34 +00:00
xen apic_enumerator: only set mp_ncpus and mp_maxid at probe cpus phase 2017-08-10 09:15:18 +00:00