VirtualBox

Changeset 78225 in vbox for trunk


Ignore:
Timestamp:
Apr 20, 2019 4:45:55 AM (6 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Nested VMX: bugref:9180 32-bit host fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r78224 r78225  
    353353static int  hmR0VmxImportGuestState(PVMCPU pVCpu, PCVMXVMCSINFO pVmcsInfo, uint64_t fWhat);
    354354#if HC_ARCH_BITS == 32 && defined(VBOX_ENABLE_64_BITS_GUESTS)
    355 static int hmR0VmxInitVmcsReadCache(PVMCPU pVCpu);
     355static void hmR0VmxInitVmcsReadCache(PVMCPU pVCpu);
    356356#endif
    357357
     
    75297529                     *        @bugref{9180#c39}. */
    75307530                    rc  = VMXReadVmcs32(VMX_VMCS_GUEST_CR0,              &u32Val);
    7531                     rc |= VMXReadVmcsHstN(VMX_VMCS_CTRL_CR0_READ_SHADOW, &u64Shadow);
     7531#if HC_ARCH_BITS == 32
     7532                    uint32_t u32Shadow;
     7533                    rc |= VMXReadVmcs32(VMX_VMCS_CTRL_CR0_READ_SHADOW, &u32Shadow);
     7534                    u64Shadow = u32Shadow;
     7535#else
     7536                    rc |= VMXReadVmcs64(VMX_VMCS_CTRL_CR0_READ_SHADOW, &u64Shadow);
     7537#endif
    75327538                    VMXLOCAL_BREAK_RC(rc);
    75337539                    u64Val = u32Val;
     
    75457551                     *        @bugref{9180#c39}. */
    75467552                    rc  = VMXReadVmcs32(VMX_VMCS_GUEST_CR4,              &u32Val);
    7547                     rc |= VMXReadVmcsHstN(VMX_VMCS_CTRL_CR4_READ_SHADOW, &u64Shadow);
     7553#if HC_ARCH_BITS == 32
     7554                    uint32_t u32Shadow;
     7555                    rc |= VMXReadVmcs32(VMX_VMCS_CTRL_CR4_READ_SHADOW, &u32Shadow);
     7556                    u64Shadow = u32Shadow;
     7557#else
     7558                    rc |= VMXReadVmcs64(VMX_VMCS_CTRL_CR4_READ_SHADOW, &u64Shadow);
     7559#endif
    75487560                    VMXLOCAL_BREAK_RC(rc);
    75497561                    u64Val = u32Val;
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