Windows guest crashes on boot. It's caused by rdmsr to MSR_IA32_FEATURE_CONTROL. Windows checks this MSR to determine enabled VMX features. Bhyve hasn't implement it yet. For that reason, bhyve injects a GP which causes Windows to crash.
This patch returns MSR_IA32_FEATURE_CONTROL with Lock Bit set and VMX disabled to tell Windows that VMX isn't available.
Details
Details
- Reviewers
grehan jhb - Group Reviewers
bhyve - Commits
- rG17d214c2ca9f: bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
usr.sbin/bhyve/xmsr.c | ||
---|---|---|
133 | I guess machine/specialreg.h already defines IA32_FEATURE_CONTROL_LOCK? |
Comment Actions
This looks ok to me with the tweaked comment. Does this permit Windows guests to boot without -w?
usr.sbin/bhyve/xmsr.c | ||
---|---|---|
129–131 |
Comment Actions
Do you have this already staged as a git commit in a tree Peter or I could pull from?