]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 273800:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 10 Feb 2015 16:34:42 +0000 (16:34 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 10 Feb 2015 16:34:42 +0000 (16:34 +0000)
commit7b9f3159c05c1225fd87ce1635efa3e30620ec4b
tree54edbf96aa853f35e8b1946740805007181f38da
parentf57291f9e3dc2d19b6efe8ab2765986274ec55ab
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@278522 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/amd64/include/md_var.h
sys/i386/include/md_var.h
sys/kern/subr_param.c
sys/sys/systm.h
sys/x86/include/vmware.h [new file with mode: 0644]
sys/x86/x86/identcpu.c
sys/x86/x86/tsc.c