Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178025828
D61954.1795792554.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
762 B
Referenced Files
None
Subscribers
None
D61954.1795792554.diff
View Options
diff --git a/sys/amd64/vmm/intel/vmx.c b/sys/amd64/vmm/intel/vmx.c
--- a/sys/amd64/vmm/intel/vmx.c
+++ b/sys/amd64/vmm/intel/vmx.c
@@ -3433,8 +3433,8 @@
return (0);
}
- if (vmxctx_getreg(&vcpu->ctx, reg, retval) == 0)
- return (0);
+ if (vmxctx_regptr(&vcpu->ctx, reg) != NULL)
+ return (vmxctx_getreg(&vcpu->ctx, reg, retval));
return (vmcs_getreg(vcpu->vmcs, running, reg, retval));
}
@@ -3456,8 +3456,8 @@
if (reg == VM_REG_GUEST_INTR_SHADOW)
return (vmx_modify_intr_shadow(vcpu, running, val));
- if (vmxctx_setreg(&vcpu->ctx, reg, val) == 0)
- return (0);
+ if (vmxctx_regptr(&vcpu->ctx, reg) != NULL)
+ return (vmxctx_setreg(&vcpu->ctx, reg, val));
/* Do not permit user write access to VMCS fields by offset. */
if (reg < 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 27, 3:15 PM (6 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41960668
Default Alt Text
D61954.1795792554.diff (762 B)
Attached To
Mode
D61954: amd64/vmm: Do not fall back to the VMCS for vmxctx registers
Attached
Detach File
Event Timeline