- Timestamp:
- Apr 20, 2019 4:45:55 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r78224 r78225 353 353 static int hmR0VmxImportGuestState(PVMCPU pVCpu, PCVMXVMCSINFO pVmcsInfo, uint64_t fWhat); 354 354 #if HC_ARCH_BITS == 32 && defined(VBOX_ENABLE_64_BITS_GUESTS) 355 static inthmR0VmxInitVmcsReadCache(PVMCPU pVCpu);355 static void hmR0VmxInitVmcsReadCache(PVMCPU pVCpu); 356 356 #endif 357 357 … … 7529 7529 * @bugref{9180#c39}. */ 7530 7530 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 7532 7538 VMXLOCAL_BREAK_RC(rc); 7533 7539 u64Val = u32Val; … … 7545 7551 * @bugref{9180#c39}. */ 7546 7552 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 7548 7560 VMXLOCAL_BREAK_RC(rc); 7549 7561 u64Val = u32Val;
Note:
See TracChangeset
for help on using the changeset viewer.