]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The older detection methods (smbios.bios.vendor and smbios.system.product)
authorstevek <stevek@FreeBSD.org>
Tue, 21 May 2019 13:29:53 +0000 (13:29 +0000)
committerstevek <stevek@FreeBSD.org>
Tue, 21 May 2019 13:29:53 +0000 (13:29 +0000)
commitb5aa18864962affc0633e63444df6aaa59efbce9
treeb002495de7f3673eaf0a6c89ce914c05728e095d
parentebfe91e034e5f56f2506013ab671fcd0ce61f439
The older detection methods (smbios.bios.vendor and smbios.system.product)
are able to determine some virtual machines, but the vm_guest variable was
still only being set to VM_GUEST_VM.

Since we do know what some of them specifically are, we can set vm_guest
appropriately.

Also, if we see the CPUID has the HV flag, but we were unable to find a
definitive vendor in the Hypervisor CPUID Information Leaf, fall back to
the older detection methods, as they may be able to determine a specific
HV type.

Add VM_GUEST_PARALLELS value to VM_GUEST for Parallels.

Approved by: cem
Differential Revision: https://reviews.freebsd.org/D20305
sys/kern/subr_param.c
sys/sys/systm.h
sys/x86/x86/identcpu.c