]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Prefer x2apic mode when running inside a virtual machine.
authorneel <neel@FreeBSD.org>
Sun, 16 Dec 2012 00:57:14 +0000 (00:57 +0000)
committerneel <neel@FreeBSD.org>
Sun, 16 Dec 2012 00:57:14 +0000 (00:57 +0000)
commit7d7f92fbade54e46285282d2c5f456298084d794
treea500b7d2860e6f8efd38cae2d48084aa02dbb0fa
parent70b50f16469543eddc3a9958b4a973bec1e41f52
Prefer x2apic mode when running inside a virtual machine.

Provide a tunable 'machdep.x2apic_desired' to let the administrator override
the default behavior.

Provide a read-only sysctl 'machdep.x2apic' to let the administrator know
whether the kernel is using x2apic or legacy mmio to access local apic.

Tested with Parallels Desktop 8 and bhyve hypervisors.
Also tested running on bare metal Intel Xeon E5-2658.

Obtained from: NetApp
Discussed with: jhb, attilio, avg, grehan
sys/amd64/amd64/mp_machdep.c
sys/amd64/include/apicvar.h
sys/x86/x86/local_apic.c