VirtualBox

Changeset 21988 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Aug 5, 2009 12:16:49 PM (15 years ago)
Author:
vboxsync
Message:

Updates

File:
1 edited

Legend:

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

    r21987 r21988  
    16291629                &&  CPUMGetGuestCPL(pVCpu, CPUMCTX2CORE(pCtx)) == 0
    16301630                &&  !CPUMIsGuestInLongModeEx(pCtx)
    1631                 &&  pVM->hwaccm.s.svm.cPatches < RT_ELEMENTS(pVM->hwaccm.s.svm.aPatches)
     1631                &&  pVM->hwaccm.s.svm.cPatches < RT_ELEMENTS(pVM->hwaccm.s.svm.aPatches))
    16321632            {
    16331633                RTGCPHYS GCPhysApicBase, GCPhys;
     
    17971797            &&  CPUMGetGuestCPL(pVCpu, CPUMCTX2CORE(pCtx)) == 0
    17981798            &&  !CPUMIsGuestInLongModeEx(pCtx)
    1799             &&  pVM->hwaccm.s.svm.cPatches < RT_ELEMENTS(pVM->hwaccm.s.svm.aPatches)
     1799            &&  pVM->hwaccm.s.svm.cPatches < RT_ELEMENTS(pVM->hwaccm.s.svm.aPatches))
    18001800        {
    18011801            RTGCPHYS GCPhysApicBase;
     
    23562356        if (    pVM->hwaccm.s.svm.fTPRPatchingActive
    23572357            &&  pCtx->ecx == MSR_K8_LSTAR
    2358             &&  pVMCB->ctrl.u64ExitInfo1 == 1 /* wrmsr */
    2359             &&  (pCtx->eax & 0xff) != u8LastTPR)
    2360         {
    2361             Log(("SVM: Faulting MSR_K8_LSTAR write with new TPR value %x\n", pCtx->eax & 0xff));
    2362 
    2363             /* Our patch code uses LSTAR for TPR caching. */
    2364             rc = PDMApicSetTPR(pVCpu, pCtx->eax & 0xff);
    2365             AssertRC(rc);
     2358            &&  pVMCB->ctrl.u64ExitInfo1 == 1 /* wrmsr */)
     2359        {
     2360            if ((pCtx->eax & 0xff) != u8LastTPR)
     2361            {
     2362                Log(("SVM: Faulting MSR_K8_LSTAR write with new TPR value %x\n", pCtx->eax & 0xff));
     2363
     2364                /* Our patch code uses LSTAR for TPR caching. */
     2365                rc = PDMApicSetTPR(pVCpu, pCtx->eax & 0xff);
     2366                AssertRC(rc);
     2367            }
    23662368
    23672369            /* Skip the instruction and continue. */
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