VirtualBox

Changeset 69914 in vbox


Ignore:
Timestamp:
Dec 4, 2017 5:22:55 AM (7 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Flushing TLB in nested hw.virt fix.

File:
1 edited

Legend:

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

    r69898 r69914  
    884884static void hmR0SvmFlushTaggedTlb(PVMCPU pVCpu, PCPUMCTX pCtx, PSVMVMCB pVmcb)
    885885{
     886#ifndef VBOX_WITH_NESTED_HWVIRT
     887    RT_NOREF(pCtx);
     888#endif
     889
    886890    PVM pVM               = pVCpu->CTX_SUFF(pVM);
    887891    PHMGLOBALCPUINFO pCpu = hmR0GetCurrentCpu();
     
    896900    Assert(pCpu->idCpu != NIL_RTCPUID);
    897901    if (   pVCpu->hm.s.idLastCpu   != pCpu->idCpu
    898         || pVCpu->hm.s.cTlbFlushes != pCpu->cTlbFlushes)
     902        || pVCpu->hm.s.cTlbFlushes != pCpu->cTlbFlushes
     903#ifdef VBOX_WITH_NESTED_HWVIRT
     904        || CPUMIsGuestInSvmNestedHwVirtMode(pCtx)
     905#endif
     906        )
    899907    {
    900908        STAM_COUNTER_INC(&pVCpu->hm.s.StatFlushTlbWorldSwitch);
     
    902910        fNewAsid = true;
    903911    }
    904 
    905 #ifdef VBOX_WITH_NESTED_HWVIRT
    906     if (CPUMIsGuestInSvmNestedHwVirtMode(pCtx))
    907         fNewAsid = true;
    908 #else
    909     RT_NOREF(pCtx);
    910 #endif
    911912
    912913    /* Set TLB flush state as checked until we return from the world switch. */
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