freebsd-dev/sys/x86
John Baldwin 01e1933dcc 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.

Differential Revision:	https://reviews.freebsd.org/D1010
Reviewed by:	delphij, jkim, neel
2014-10-28 19:17:44 +00:00
..
acpica Missing from previous commit - keep the VM domain -> PXM mapping 2014-10-09 05:34:28 +00:00
bios Add missing header needed by free(9). 2012-09-30 15:42:20 +00:00
cpufreq Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
include Rework virtual machine hypervisor detection. 2014-10-28 19:17:44 +00:00
iommu Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
isa Virtual machines can easily have more than 16 option ROMs and 2014-10-22 01:37:32 +00:00
pci Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
x86 Rework virtual machine hypervisor detection. 2014-10-28 19:17:44 +00:00
xen xen: implement the privcmd user-space device 2014-10-22 17:07:20 +00:00