VirtualBox

Changeset 24249 in vbox


Ignore:
Timestamp:
Nov 2, 2009 12:44:11 PM (15 years ago)
Author:
vboxsync
Message:

TPR patch fixes

File:
1 edited

Legend:

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

    r24248 r24249  
    25142514                /* Must save the host LSTAR msr to restore it later. */
    25152515                fRestoreLSTAR = true;
    2516                 u64LSTAR = ASMRdMsr(MSR_K8_LSTAR);
    25172516            }
    25182517        }
     
    26142613#endif
    26152614
     2615    /* Save the current TPR value in the LSTAR msr so our patches can access it. */
     2616    if (fRestoreLSTAR)
     2617    {
     2618        Assert(pVM->hwaccm.s.fTPRPatchingActive);
     2619        u64LSTAR = ASMRdMsr(MSR_K8_LSTAR);
     2620        ASMWrMsr(MSR_K8_LSTAR, u8LastTPR);
     2621    }
     2622
    26162623    TMNotifyStartOfExecution(pVCpu);
    26172624#ifdef VBOX_WITH_KERNEL_USING_XMM
     
    26342641    {
    26352642        Assert(pVM->hwaccm.s.fTPRPatchingActive);
     2643        pCtx->msrLSTAR = ASMRdMsr(MSR_K8_LSTAR);
    26362644        ASMWrMsr(MSR_K8_LSTAR, u64LSTAR);
    26372645    }
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