HomeFreeBSD

Add explicit detection of KVM hypervisor

Description

Add explicit detection of KVM hypervisor

Set vm_guest to a new enum value (VM_GUEST_KVM) when kvm is detected and use
vm_guest in conditionals testing for KVM.

Also, fix a conditional checking if we're running in a VM which caught only
the generic VM case, but not more specific VMs (KVM, VMWare, etc.). (Spotted
by: vangyzen).

Differential revision: https://reviews.freebsd.org/D7172
Sponsored by: Dell Inc.
Approved by: kib (mentor), vangyzen (mentor)
Reviewed by: alc
MFC after: 4 weeks

Details

Provenance
badgerAuthored on
Reviewer
alc
Differential Revision
D7172: Add explicit detection of KVM hypervisor
Parents
rS302782: Remove a tunable and always reset system clock while resuming with ACPI.
Branches
Unknown
Tags
Unknown