HomeFreeBSD

bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL

Description

bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL

Without the -w option, Windows guests crash on boot. This is caused by a rdmsr
of MSR_IA32_FEATURE_CONTROL. Windows checks this MSR to determine enabled VMX
features. This MSR isn't emulated in bhyve, so a #GP exception is injected
which causes Windows to crash.

Fix by returning a rdmsr of MSR_IA32_FEATURE_CONTROL with Lock Bit set and
VMX disabled to informWindows that VMX isn't available.

Reviewed by: jhb, grehan (bhyve)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D29665

Details

Provenance
corvinkAuthored on Apr 15 2021, 3:49 AM
grehanCommitted on Apr 15 2021, 3:49 AM
Reviewer
jhb
Differential Revision
D29665: bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL
Parents
rG14d0cd7225e2: Ensure that the mount command shows "with quotas" when quotas are enabled.
Branches
Unknown
Tags
Unknown