diff options
| author | Chuck Tuffli <chuck@FreeBSD.org> | 2025-07-26 22:09:59 +0000 |
|---|---|---|
| committer | Chuck Tuffli <chuck@FreeBSD.org> | 2025-11-17 21:54:00 +0000 |
| commit | 321a153806685dff031c6ab2d453f077914910ec (patch) | |
| tree | 4d7148d7779cbb020c8d254ee2de2aa562d67aa8 | |
| parent | 511e33d209257eadeb5487bcff91389c3ff6d5eb (diff) | |
bhyve: Report SVM as disabled on AMD
bhyve with a Windows 2025 guest will hang/freeze with the message
rdmsr to register 0xc0010114
on a system with an AMD Ryzen 5. Evidently, recent versions of Windows
ignore the CPUID bits and still read this MSR.
Fix is to report Secure Virtual Machine (SVM) mode as disabled in the VM CR.
PR: 288308
(cherry picked from commit 92dfc3fbcd79422a4586590edabe483f361b7e0e)
| -rw-r--r-- | usr.sbin/bhyve/amd64/xmsr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/amd64/xmsr.c b/usr.sbin/bhyve/amd64/xmsr.c index 7481df4669e7..b245fc27045d 100644 --- a/usr.sbin/bhyve/amd64/xmsr.c +++ b/usr.sbin/bhyve/amd64/xmsr.c @@ -205,6 +205,15 @@ emulate_rdmsr(struct vcpu *vcpu __unused, uint32_t num, uint64_t *val) *val = 1; break; + case MSR_VM_CR: + /* + * We currently don't support nested virt. + * Windows seems to ignore the cpuid bits and reads this + * MSR anyways. + */ + *val = VM_CR_SVMDIS; + break; + default: error = -1; break; |
