VirtualBox

Changeset 49967 in vbox


Ignore:
Timestamp:
Dec 17, 2013 8:59:40 PM (11 years ago)
Author:
vboxsync
Message:

HMR0SVM.cpp: Use CPUR0GetGuestTscAux() instead of CPUMQueryGuestMsr to get the AUX TSC.

File:
1 edited

Legend:

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

    r49937 r49967  
    30233023        && !(pVmcb->ctrl.u32InterceptCtrl2 & SVM_CTRL2_INTERCEPT_RDTSCP))
    30243024    {
     3025        /** @todo r=bird: I cannot find any place where the guest TSC_AUX value is
     3026         *        saved. */
    30253027        hmR0SvmSetMsrPermission(pVCpu, MSR_K8_TSC_AUX, SVMMSREXIT_PASSTHRU_READ, SVMMSREXIT_PASSTHRU_WRITE);
    30263028        pVCpu->hm.s.u64HostTscAux = ASMRdMsr(MSR_K8_TSC_AUX);
    3027         uint64_t u64GuestTscAux = 0;
    3028         int rc2 = CPUMQueryGuestMsr(pVCpu, MSR_K8_TSC_AUX, &u64GuestTscAux);
    3029         AssertRC(rc2);
     3029        uint64_t u64GuestTscAux = CPUMR0GetGuestTscAux(pVCpu);
    30303030        if (u64GuestTscAux != pVCpu->hm.s.u64HostTscAux)
    30313031            ASMWrMsr(MSR_K8_TSC_AUX, u64GuestTscAux);
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