Page MenuHomeFreeBSD

D61790.1795254791.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61790.1795254791.diff

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
@@ -3359,7 +3359,7 @@
case EXIT_REASON_EPT_FAULT:
/*
* L2 runs on L1's shadow page tables: this is a fault
- * in L1's memory, or L1 has made a mistake.
+ * in L1's memory, or an access to a device.
*/
gpa = vmcs_gpa();
if (vm_mem_allocated(vcpu->vcpu, gpa)) {
@@ -3370,7 +3370,20 @@
vmm_stat_incr(vcpu->vcpu,
VMEXIT_NESTED_FAULT, 1);
} else {
- vm_suspend(vmx->vm, VM_SUSPEND_TRIPLEFAULT);
+ /*
+ * Not memory: L2 gets to a device, which is
+ * emulated as it is for L1.
+ */
+ vmexit->rip = vmcs_guest_rip();
+ vmexit->inst_length =
+ vmexit_instruction_length();
+ vmexit->u.vmx.exit_qualification = qual;
+ if (vmx_exit_process(vmx, vcpu, vmexit) == 0) {
+ nested->l2_rip = true;
+ } else {
+ vmexit->rip = rip;
+ vmexit->exitcode = VM_EXITCODE_BOGUS;
+ }
}
if ((vmcs_idt_vectoring_info() &
VMCS_IDT_VEC_VALID) == 0 &&

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 21, 9:53 AM (15 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41886814
Default Alt Text
D61790.1795254791.diff (1 KB)

Event Timeline