VirtualBox

Changeset 49970 in vbox for trunk/src


Ignore:
Timestamp:
Dec 17, 2013 11:44:22 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Avoid MSR write when possible.

File:
1 edited

Legend:

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

    r49969 r49970  
    30933093    if (pSvmTransient->fRestoreTscAuxMsr)
    30943094    {
    3095         CPUMR0SetGuestTscAux(pVCpu, ASMRdMsr(MSR_K8_TSC_AUX));
    3096         ASMWrMsr(MSR_K8_TSC_AUX, pVCpu->hm.s.u64HostTscAux);
     3095        uint64_t u64GuestTscAuxMsr = ASMRdMsr(MSR_K8_TSC_AUX);
     3096        CPUMR0SetGuestTscAux(pVCpu, u64GuestTscAuxMsr);
     3097        if (u64GuestTscAuxMsr != pVCpu->hm.s.u64HostTscAux)
     3098            ASMWrMsr(MSR_K8_TSC_AUX, pVCpu->hm.s.u64HostTscAux);
    30973099    }
    30983100
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