- Timestamp:
- Mar 18, 2019 9:18:18 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h
r77717 r77746 7569 7569 { 7570 7570 /* VMLAUNCH with non-clear VMCS. */ 7571 if (pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState == VMX_V_VMCS_ STATE_CLEAR)7571 if (pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState == VMX_V_VMCS_LAUNCH_STATE_CLEAR) 7572 7572 { /* likely */ } 7573 7573 else … … 7583 7583 { 7584 7584 /* VMRESUME with non-launched VMCS. */ 7585 if (pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState == VMX_V_VMCS_ STATE_LAUNCHED)7585 if (pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState == VMX_V_VMCS_LAUNCH_STATE_LAUNCHED) 7586 7586 { /* likely */ } 7587 7587 else … … 7643 7643 /* VMLAUNCH instruction must update the VMCS launch state. */ 7644 7644 if (uInstrId == VMXINSTRID_VMLAUNCH) 7645 pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState = VMX_V_VMCS_ STATE_LAUNCHED;7645 pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState = VMX_V_VMCS_LAUNCH_STATE_LAUNCHED; 7646 7646 7647 7647 /* Perform the VMX transition (PGM updates). */ … … 8299 8299 * to 'clear'. 8300 8300 */ 8301 uint8_t const fVmcs StateClear = VMX_V_VMCS_STATE_CLEAR;8301 uint8_t const fVmcsLaunchStateClear = VMX_V_VMCS_LAUNCH_STATE_CLEAR; 8302 8302 if ( IEM_VMX_HAS_CURRENT_VMCS(pVCpu) 8303 8303 && IEM_VMX_GET_CURRENT_VMCS(pVCpu) == GCPhysVmcs) … … 8305 8305 Assert(GCPhysVmcs != NIL_RTGCPHYS); /* Paranoia. */ 8306 8306 Assert(pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)); 8307 pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState = fVmcs StateClear;8307 pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs)->fVmcsState = fVmcsLaunchStateClear; 8308 8308 iemVmxCommitCurrentVmcsToMemory(pVCpu); 8309 8309 Assert(!IEM_VMX_HAS_CURRENT_VMCS(pVCpu)); … … 8311 8311 else 8312 8312 { 8313 AssertCompileMemberSize(VMXVVMCS, fVmcsState, sizeof(fVmcs StateClear));8313 AssertCompileMemberSize(VMXVVMCS, fVmcsState, sizeof(fVmcsLaunchStateClear)); 8314 8314 rcStrict = PGMPhysSimpleWriteGCPhys(pVCpu->CTX_SUFF(pVM), GCPhysVmcs + RT_UOFFSETOF(VMXVVMCS, fVmcsState), 8315 (const void *)&fVmcs StateClear, sizeof(fVmcsStateClear));8315 (const void *)&fVmcsLaunchStateClear, sizeof(fVmcsLaunchStateClear)); 8316 8316 if (RT_FAILURE(rcStrict)) 8317 8317 return rcStrict;
Note:
See TracChangeset
for help on using the changeset viewer.