Page MenuHomeFreeBSD

D61801.1795276194.diff
No OneTemporary

Authored By
Unknown
Size
779 B
Referenced Files
None
Subscribers
None

D61801.1795276194.diff

diff --git a/sys/amd64/vmm/intel/vmx_msr.c b/sys/amd64/vmm/intel/vmx_msr.c
--- a/sys/amd64/vmm/intel/vmx_msr.c
+++ b/sys/amd64/vmm/intel/vmx_msr.c
@@ -441,6 +441,16 @@
else
error = EINVAL;
break;
+ case MSR_DEBUGCTLMSR:
+ /*
+ * A hypervisor saves and restores this MSR around its
+ * guests. None of its features is there for a guest.
+ */
+ if (vcpu->nested != NULL)
+ *val = 0;
+ else
+ error = EINVAL;
+ break;
default:
error = EINVAL;
break;
@@ -490,6 +500,12 @@
error = EINVAL;
break;
+ case MSR_DEBUGCTLMSR:
+ if (vcpu->nested == NULL)
+ error = EINVAL;
+ else if (val != 0)
+ error = EINVAL; /* as before: for bhyve(8) to decide */
+ break;
case MSR_PAT:
if (pat_valid(val))
vcpu->guest_msrs[IDX_MSR_PAT] = val;

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 21, 3:49 PM (21 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41890741
Default Alt Text
D61801.1795276194.diff (779 B)

Event Timeline