Changeset 96964 in vbox
- Timestamp:
- Oct 2, 2022 10:02:06 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp
r96961 r96964 7536 7536 7537 7537 /** 7538 * Injects an event using TRPM given a VM-entry interruption info .and related7538 * Injects an event using TRPM given a VM-entry interruption info and related 7539 7539 * fields. 7540 7540 * … … 7574 7574 Log(("%s: Injecting: fault_addr=%RGp\n", pszInstr, GCPtrFaultAddress)); 7575 7575 } 7576 else 7577 { 7578 if ( uType == VMX_ENTRY_INT_INFO_TYPE_SW_INT 7579 || uType == VMX_ENTRY_INT_INFO_TYPE_SW_XCPT 7580 || uType == VMX_ENTRY_INT_INFO_TYPE_PRIV_SW_XCPT) 7581 { 7582 TRPMSetInstrLength(pVCpu, cbInstr); 7583 Log(("%s: Injecting: instr_len=%u\n", pszInstr, cbInstr)); 7584 } 7576 else if ( uType == VMX_ENTRY_INT_INFO_TYPE_SW_INT 7577 || uType == VMX_ENTRY_INT_INFO_TYPE_SW_XCPT 7578 || uType == VMX_ENTRY_INT_INFO_TYPE_PRIV_SW_XCPT) 7579 { 7580 TRPMSetInstrLength(pVCpu, cbInstr); 7581 Log(("%s: Injecting: instr_len=%u\n", pszInstr, cbInstr)); 7585 7582 } 7586 7583 … … 7634 7631 * However, we do it here on VM-entry as well because while it isn't visible to guest 7635 7632 * software until VM-exit, when and if HM looks at the VMCS to continue nested-guest 7636 * execution using hardware-assisted VMX, it will not betry to inject the event again.7633 * execution using hardware-assisted VMX, it will not try to inject the event again. 7637 7634 * 7638 7635 * See Intel spec. 24.8.3 "VM-Entry Controls for Event Injection". … … 7726 7723 Assert( uInstrId == VMXINSTRID_VMLAUNCH 7727 7724 || uInstrId == VMXINSTRID_VMRESUME); 7728 const char * pszInstr = uInstrId == VMXINSTRID_VMRESUME ? "vmresume" : "vmlaunch";7725 const char * const pszInstr = uInstrId == VMXINSTRID_VMRESUME ? "vmresume" : "vmlaunch"; 7729 7726 7730 7727 /* Nested-guest intercept. */
Note:
See TracChangeset
for help on using the changeset viewer.