VirtualBox

Changeset 46752 in vbox


Ignore:
Timestamp:
Jun 24, 2013 12:23:15 PM (12 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: AMD-V bits.

File:
1 edited

Legend:

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

    r46748 r46752  
    11251125
    11261126        pVmcb->ctrl.u64VmcbCleanBits &= ~HMSVM_VMCB_CLEAN_CRX_EFER;
    1127         pVCpu->hm.s.fContextUseFlags &= HM_CHANGED_GUEST_CR3;
     1127        pVCpu->hm.s.fContextUseFlags &= ~HM_CHANGED_GUEST_CR3;
    11281128    }
    11291129
     
    15441544    NOREF(pVCpu);
    15451545    /* Nothing to do here. AMD-V does this for us automatically during the world-switch. */
     1546    pVCpu->hm.s.fContextUseFlags &= ~HM_CHANGED_HOST_CONTEXT;
    15461547    return VINF_SUCCESS;
    15471548}
     
    27542755
    27552756        /* Handle the #VMEXIT. */
    2756         AssertMsg(SvmTransient.u64ExitCode != (uint64_t)SVM_EXIT_INVALID, ("%#x\n", SvmTransient.u64ExitCode));
    27572757        HMSVM_EXITCODE_STAM_COUNTER_INC(SvmTransient.u64ExitCode);
    27582758        rc = hmR0SvmHandleExit(pVCpu, pCtx, &SvmTransient);
     
    27862786DECLINLINE(int) hmR0SvmHandleExit(PVMCPU pVCpu, PCPUMCTX pCtx, PSVMTRANSIENT pSvmTransient)
    27872787{
    2788     Assert(pSvmTransient->u64ExitCode > 0);
     2788    Assert(pSvmTransient->u64ExitCode != (uint64_t)SVM_EXIT_INVALID);
    27892789    Assert(pSvmTransient->u64ExitCode <= SVM_EXIT_MAX);
    27902790
     
    28852885                case SVM_EXIT_VMMCALL:
    28862886                    return hmR0SvmExitVmmCall(pVCpu, pCtx, pSvmTransient);
     2887
     2888                case SVM_EXIT_SHUTDOWN:
     2889                    return hmR0SvmExitShutdown(pVCpu, pCtx, pSvmTransient);
    28872890
    28882891                case SVM_EXIT_INVLPGA:
     
    36083611    VBOXSTRICTRC rc2 = EMInterpretInstruction(pVCpu, CPUMCTX2CORE(pCtx), 0 /* pvFault */);
    36093612    int rc = VBOXSTRICTRC_VAL(rc2);
    3610     Assert(rc == VERR_EM_INTERPRETER || rc == VINF_PGM_CHANGE_MODE || rc == VINF_PGM_SYNC_CR3);
     3613    AssertMsg(rc == VINF_SUCCESS || rc == VERR_EM_INTERPRETER || rc == VINF_PGM_CHANGE_MODE || rc == VINF_PGM_SYNC_CR3,
     3614              ("hmR0SvmExitReadCRx: EMInterpretInstruction failed rc=%Rrc\n", rc));
    36113615    Assert((pSvmTransient->u64ExitCode - SVM_EXIT_READ_CR0) <= 15);
    36123616    STAM_COUNTER_INC(&pVCpu->hm.s.StatExitCRxRead[pSvmTransient->u64ExitCode - SVM_EXIT_READ_CR0]);
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