Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177781476
D61801.1795271590.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
779 B
Referenced Files
None
Subscribers
None
D61801.1795271590.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 21, 2:33 PM (20 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41890741
Default Alt Text
D61801.1795271590.diff (779 B)
Attached To
Mode
D61801: vmm: Give a guest that can use VMX the IA32_DEBUGCTL MSR
Attached
Detach File
Event Timeline