summaryrefslogtreecommitdiffstats
path: root/contrib/diff/src/io.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-02-10 16:34:42 +0000
committerjhb <jhb@FreeBSD.org>2015-02-10 16:34:42 +0000
commit9809511c44729704d6f683faf47bd9a7f506b8dc (patch)
tree54edbf96aa853f35e8b1946740805007181f38da /contrib/diff/src/io.c
parentcae60585e2fc7c63d7d94c5ab3c69e795bb3b647 (diff)
downloadFreeBSD-src-9809511c44729704d6f683faf47bd9a7f506b8dc.zip
FreeBSD-src-9809511c44729704d6f683faf47bd9a7f506b8dc.tar.gz
MFC 273800:
Rework virtual machine hypervisor detection. - Move the existing code to x86/x86/identcpu.c since it is x86-specific. - If the CPUID2_HV flag is set, assume a hypervisor is present and query the 0x40000000 leaf to determine the hypervisor vendor ID. Export the vendor ID and the highest supported hypervisor CPUID leaf via hv_vendor[] and hv_high variables, respectively. The hv_vendor[] array is also exported via the hw.hv_vendor sysctl. - Merge the VMWare detection code from tsc.c into the new probe in identcpu.c. Add a VM_GUEST_VMWARE to identify vmware and use that in the TSC code to identify VMWare.
Diffstat (limited to 'contrib/diff/src/io.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud