VirtualBox

Changeset 80036 in vbox for trunk/src


Ignore:
Timestamp:
Jul 29, 2019 7:44:29 AM (5 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Nested SVM: bugref:7243 Move u64HostTscAux to svm union.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r79649 r80036  
    46264626    {
    46274627        uint64_t const uGuestTscAux = CPUMGetGuestTscAux(pVCpu);
    4628         pVCpu->hm.s.u64HostTscAux   = ASMRdMsr(MSR_K8_TSC_AUX);
    4629         if (uGuestTscAux != pVCpu->hm.s.u64HostTscAux)
     4628        pVCpu->hm.s.svm.u64HostTscAux   = ASMRdMsr(MSR_K8_TSC_AUX);
     4629        if (uGuestTscAux != pVCpu->hm.s.svm.u64HostTscAux)
    46304630            ASMWrMsr(MSR_K8_TSC_AUX, uGuestTscAux);
    46314631        hmR0SvmSetMsrPermission(pVCpu, pbMsrBitmap, MSR_K8_TSC_AUX, SVMMSREXIT_PASSTHRU_READ, SVMMSREXIT_PASSTHRU_WRITE);
     
    47234723        uint64_t u64GuestTscAuxMsr = ASMRdMsr(MSR_K8_TSC_AUX);
    47244724        CPUMSetGuestTscAux(pVCpu, u64GuestTscAuxMsr);
    4725         if (u64GuestTscAuxMsr != pVCpu->hm.s.u64HostTscAux)
    4726             ASMWrMsr(MSR_K8_TSC_AUX, pVCpu->hm.s.u64HostTscAux);
     4725        if (u64GuestTscAuxMsr != pVCpu->hm.s.svm.u64HostTscAux)
     4726            ASMWrMsr(MSR_K8_TSC_AUX, pVCpu->hm.s.svm.u64HostTscAux);
    47274727    }
    47284728
  • trunk/src/VBox/VMM/include/HMInternal.h

    r79971 r80036  
    973973    /** CPU-context changed flags (see HM_CHANGED_xxx). */
    974974    uint64_t                    fCtxChanged;
    975     /** Host's TSC_AUX MSR (used when RDTSCP doesn't cause VM-exits). */
    976     uint64_t                    u64HostTscAux;  /** @todo r=ramshankar: Can be removed and put in SVMTRANSIENT instead! */
    977975
    978976    union /* no tag! */
     
    10821080            bool                        fSyncVTpr;
    10831081            uint8_t                     au8Alignment0[7];
     1082
     1083            /** Host's TSC_AUX MSR (used when RDTSCP doesn't cause VM-exits). */
     1084            uint64_t                    u64HostTscAux;
    10841085
    10851086            /** Cache of the nested-guest's VMCB fields that we modify in order to run the
  • trunk/src/VBox/VMM/include/HMInternal.mac

    r78220 r80036  
    8787    alignb 8
    8888    .fCtxChanged            resq    1
    89     .u64HostTscAux          resq    1
    9089
    9190    ; incomplete to save unnecessary pain...
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