HomeFreeBSD

Instead of individual conditional statements to look for each hypervisor

Description

Instead of individual conditional statements to look for each hypervisor
type, use a table to make it easier to add more in the future, if needed.

Add VirtualBox detection to the table ("VBoxVBoxVBox" is the hypervisor
vendor string to look for.) Also add VM_GUEST_VBOX to the VM_GUEST
enumeration to indicate VirtualBox.

Save the CPUID base for the hypervisor entry that we detected. Driver code
may need to know about it in order to obtain additional CPUID features.

Approved by: bryanv, jhb
Differential Revision: https://reviews.freebsd.org/D16305

Details

Provenance
stevekAuthored on May 17 2019, 5:21 PM
Parents
rG8f7f38457f94: Free microcode memory later.
Branches
Unknown
Tags
Unknown

Event Timeline