VirtualBox

Changeset 15364 in vbox


Ignore:
Timestamp:
Dec 12, 2008 1:19:02 PM (16 years ago)
Author:
vboxsync
Message:

Cleanup + extra check

File:
1 edited

Legend:

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

    r15363 r15364  
    21252125    rc |= VMXReadCachedVMCS(VMX_VMCS32_RO_VM_INSTR_ERROR, &instrError);
    21262126    rc |= VMXReadCachedVMCS(VMX_VMCS32_RO_EXIT_INSTR_LENGTH, &cbInstr);
    2127     rc |= VMXReadCachedVMCS(VMX_VMCS32_RO_EXIT_INTERRUPTION_INFO, &val);
    2128     intInfo   = val;
    2129     rc |= VMXReadCachedVMCS(VMX_VMCS32_RO_EXIT_INTERRUPTION_ERRCODE, &val);
    2130     errCode   = val;    /* might not be valid; depends on VMX_EXIT_INTERRUPTION_INFO_ERROR_CODE_IS_VALID. */
    2131     rc |= VMXReadCachedVMCS(VMX_VMCS32_RO_EXIT_INSTR_INFO, &val);
    2132     instrInfo = val;
    2133     rc |= VMXReadCachedVMCS(VMX_VMCS_RO_EXIT_QUALIFICATION, &val);
    2134     exitQualification = val;
     2127    rc |= VMXReadCachedVMCS(VMX_VMCS32_RO_EXIT_INTERRUPTION_INFO, &intInfo);
     2128    /* might not be valid; depends on VMX_EXIT_INTERRUPTION_INFO_ERROR_CODE_IS_VALID. */
     2129    rc |= VMXReadCachedVMCS(VMX_VMCS32_RO_EXIT_INTERRUPTION_ERRCODE, &errCode);
     2130    rc |= VMXReadCachedVMCS(VMX_VMCS32_RO_EXIT_INSTR_INFO, &instrInfo);
     2131    rc |= VMXReadCachedVMCS(VMX_VMCS_RO_EXIT_QUALIFICATION, &exitQualification);
    21352132    AssertRC(rc);
    21362133
     
    21842181
    21852182    Log2(("E%d", exitReason));
    2186     Log2(("Exit reason %d, exitQualification %RGv\n", exitReason, exitQualification));
    2187     Log2(("instrInfo=%d instrError=%d instr length=%d\n", instrInfo, instrError, cbInstr));
    2188     Log2(("Interruption error code %d\n", errCode));
    2189     Log2(("IntInfo = %08x\n", intInfo));
     2183    Log2(("Exit reason %d, exitQualification %RGv\n", (uint32_t)exitReason, exitQualification));
     2184    Log2(("instrInfo=%d instrError=%d instr length=%d\n", (uint32_t)instrInfo, (uint32_t)instrError, (uint32_t)cbInstr));
     2185    Log2(("Interruption error code %d\n", (uint32_t)errCode));
     2186    Log2(("IntInfo = %08x\n", (uint32_t)intInfo));
    21902187    Log2(("New EIP=%RGv\n", (RTGCPTR)pCtx->rip));
    21912188
     
    35663563    rc = pVM->hwaccm.s.pfnHost32ToGuest64R0(pVM);
    35673564
     3565#ifdef VBOX_STRICT
     3566    RTHCUINTREG  uFlagsTest = ASMGetFlags();
     3567#endif
     3568
    35683569    ASMSetFlags(uFlags);
    35693570
     
    35823583
    35833584    VMXActivateVMCS(pVCpu->hwaccm.s.vmx.pVMCSPhys);
     3585    Assert(!(uFlagsTest & X86_EFL_IF));
    35843586    return rc;
    35853587}
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