VirtualBox

Ignore:
Timestamp:
Jan 6, 2019 7:29:53 AM (6 years ago)
Author:
vboxsync
Message:

VMM/IEM: Nested VMX: bugref:9180 VMREAD/VMLAUNCH fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h

    r76646 r76652  
    73277327                                iemVmxVmentryInjectEvent(pVCpu, pszInstr);
    73287328
    7329                                 return VINF_SUCCESS;
     7329                                /*
     7330                                 * We've successfully entered nested-guest execution at this point.
     7331                                 * Return after setting nested-guest EM execution policy as necessary.
     7332                                 */
     7333                                IEM_VMX_R3_EXECPOLICY_IEM_ALL_ENABLE_RET(pVCpu, pszInstr);
    73307334                            }
    73317335                            return iemVmxVmexit(pVCpu, VMX_EXIT_ERR_MSR_LOAD | VMX_EXIT_REASON_ENTRY_FAILED);
     
    73447348    iemVmxVmFail(pVCpu, VMXINSTRERR_VMENTRY_INVALID_CTLS);
    73457349    iemRegAddToRipAndClearRF(pVCpu, cbInstr);
    7346     IEM_VMX_R3_EXECPOLICY_IEM_ALL_ENABLE_RET(pVCpu, pszInstr);
     7350    return VINF_SUCCESS;
    73477351# endif
    73487352}
     
    84458449
    84468450/**
    8447  * Implements 'VMREAD' 64-bit register.
    8448  */
    8449 IEM_CIMPL_DEF_2(iemCImpl_vmread64_reg, uint64_t *, pu64Dst, uint64_t, u64FieldEnc)
     8451 * Implements 'VMREAD' register (64-bit).
     8452 */
     8453IEM_CIMPL_DEF_2(iemCImpl_vmread_reg64, uint64_t *, pu64Dst, uint64_t, u64FieldEnc)
    84508454{
    84518455    return iemVmxVmreadReg64(pVCpu, cbInstr, pu64Dst, u64FieldEnc, NULL /* pExitInfo */);
     
    84548458
    84558459/**
    8456  * Implements 'VMREAD' 32-bit register.
    8457  */
    8458 IEM_CIMPL_DEF_2(iemCImpl_vmread32_reg, uint32_t *, pu32Dst, uint32_t, u32FieldEnc)
     8460 * Implements 'VMREAD' register (32-bit).
     8461 */
     8462IEM_CIMPL_DEF_2(iemCImpl_vmread_reg32, uint32_t *, pu32Dst, uint32_t, u32FieldEnc)
    84598463{
    84608464    return iemVmxVmreadReg32(pVCpu, cbInstr, pu32Dst, u32FieldEnc, NULL /* pExitInfo */);
     
    84638467
    84648468/**
    8465  * Implements 'VMREAD' memory.
    8466  */
    8467 IEM_CIMPL_DEF_4(iemCImpl_vmread_mem, uint8_t, iEffSeg, IEMMODE, enmEffAddrMode, RTGCPTR, GCPtrDst, uint32_t, u64FieldEnc)
     8469 * Implements 'VMREAD' memory, 64-bit register.
     8470 */
     8471IEM_CIMPL_DEF_4(iemCImpl_vmread_mem_reg64, uint8_t, iEffSeg, IEMMODE, enmEffAddrMode, RTGCPTR, GCPtrDst, uint32_t, u64FieldEnc)
    84688472{
    84698473    return iemVmxVmreadMem(pVCpu, cbInstr, iEffSeg, enmEffAddrMode, GCPtrDst, u64FieldEnc, NULL /* pExitInfo */);
     8474}
     8475
     8476
     8477/**
     8478 * Implements 'VMREAD' memory, 32-bit register.
     8479 */
     8480IEM_CIMPL_DEF_4(iemCImpl_vmread_mem_reg32, uint8_t, iEffSeg, IEMMODE, enmEffAddrMode, RTGCPTR, GCPtrDst, uint32_t, u32FieldEnc)
     8481{
     8482    return iemVmxVmreadMem(pVCpu, cbInstr, iEffSeg, enmEffAddrMode, GCPtrDst, u32FieldEnc, NULL /* pExitInfo */);
    84708483}
    84718484
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette