hyperv: Set vm_guest to VM_GUEST_VM, if hypervisor is not Hyper-V
Reviewed by: kib MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6412
This commit is contained in:
parent
9627a270d2
commit
27ba130d14
@ -501,8 +501,12 @@ hyperv_identify(void)
|
||||
static void
|
||||
hyperv_init(void *dummy __unused)
|
||||
{
|
||||
if (!hyperv_identify())
|
||||
if (!hyperv_identify()) {
|
||||
/* Not Hyper-V; reset guest id to the generic one. */
|
||||
if (vm_guest == VM_GUEST_HV)
|
||||
vm_guest = VM_GUEST_VM;
|
||||
return;
|
||||
}
|
||||
|
||||
if (hyperv_features & HV_FEATURE_MSR_TIME_REFCNT) {
|
||||
/* Register virtual timecount */
|
||||
|
Loading…
Reference in New Issue
Block a user