VirtualBox

Changeset 87561 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Feb 3, 2021 11:43:51 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142588
Message:

VMM/HMVMX: Tidied up HM some more. bugref:9217

File:
1 edited

Legend:

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

    r87538 r87561  
    21182118            pVCpu->hmr0.s.svm.fSyncVTpr = false;
    21192119
    2120             if (!pVM->hm.s.fTPRPatchingActive)
     2120            if (!pVM->hm.s.fTprPatchingActive)
    21212121            {
    21222122                /* Bits 3-0 of the VTPR field correspond to bits 7-4 of the TPR (which is the Task-Priority Class). */
     
    41434143        Assert(!pSvmTransient->fIsNestedGuest);
    41444144        PCSVMVMCB pVmcb = pVCpu->hmr0.s.svm.pVmcb;
    4145         if (pVM->hm.s.fTPRPatchingActive)
     4145        if (pVM->hm.s.fTprPatchingActive)
    41464146            pSvmTransient->u8GuestTpr = pVmcb->guest.u64LSTAR;
    41474147        else
     
    44354435        Assert(!pSvmTransient->fIsNestedGuest);
    44364436        /* TPR patching (for 32-bit guests) uses LSTAR MSR for holding the TPR value, otherwise uses the VTPR. */
    4437         if (   pVM->hm.s.fTPRPatchingActive
     4437        if (   pVM->hm.s.fTprPatchingActive
    44384438            && (pVmcb->guest.u64LSTAR & 0xff) != pSvmTransient->u8GuestTpr)
    44394439        {
     
    63586358    bool const fSupportsNextRipSave = hmR0SvmSupportsNextRipSave(pVCpu);
    63596359    if (   idMsr == MSR_K8_LSTAR
    6360         && pVCpu->CTX_SUFF(pVM)->hm.s.fTPRPatchingActive)
     6360        && pVCpu->CTX_SUFF(pVM)->hm.s.fTprPatchingActive)
    63616361    {
    63626362        unsigned cbInstr;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette