- Timestamp:
- Jan 9, 2019 1:45:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h
r76735 r76738 743 743 RTSEL HostSel; 744 744 uint8_t const uWidth = VMX_VMCS_ENC_WIDTH_16BIT; 745 uint8_t const uType = VMX_VMCS_ENC_TYPE_ GUEST_STATE;745 uint8_t const uType = VMX_VMCS_ENC_TYPE_HOST_STATE; 746 746 uint8_t const uWidthType = (uWidth << 2) | uType; 747 747 uint8_t const uIndex = (iSegReg << 1) + RT_BF_GET(VMX_VMCS16_GUEST_ES_SEL, VMX_BF_VMCS_ENC_INDEX); … … 2150 2150 for (unsigned iSegReg = 0; iSegReg < X86_SREG_COUNT; iSegReg++) 2151 2151 { 2152 RTSEL const HostSel = iemVmxVmcsGetHostSelReg(pVmcs, iSegReg);2152 RTSEL const HostSel = iemVmxVmcsGetHostSelReg(pVmcs, iSegReg); 2153 2153 bool const fUnusable = RT_BOOL(HostSel == 0); 2154 2154 … … 2849 2849 if (!fVmentryFailed) 2850 2850 { 2851 /* 2852 * The rest of the high bits of the VM-exit reason are only relevant when the VM-exit 2853 * occurs in enclave mode/SMM which we don't support yet. 2854 * 2855 * If we ever add support for it, we can pass just the lower bits, till then an assert 2856 * should suffice. 2857 */ 2858 Assert(!RT_HI_U16(uExitReason)); 2859 2851 2860 iemVmxVmexitSaveGuestState(pVCpu, uExitReason); 2852 2861 int rc = iemVmxVmexitSaveGuestAutoMsrs(pVCpu, uExitReason); … … 2864 2873 iemVmxVmexitRestoreForceFlags(pVCpu); 2865 2874 } 2866 2867 /*2868 * The high bits of the VM-exit reason are only relevant when the VM-exit occurs in2869 * enclave mode/SMM which we don't support yet. If we ever add support for it, we can2870 * pass just the lower bits, till then an assert should suffice.2871 */2872 Assert(!RT_HI_U16(uExitReason));2873 2875 2874 2876 VBOXSTRICTRC rcStrict = iemVmxVmexitLoadHostState(pVCpu, uExitReason);
Note:
See TracChangeset
for help on using the changeset viewer.