VirtualBox

Changeset 105607 in vbox


Ignore:
Timestamp:
Aug 6, 2024 2:28:06 PM (8 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164286
Message:

VMM/IEM: Optimized out the cbInstrBufTotal zapping in iemTlbInvalidateLargePageWorkerInner (code TLB only). bugref:10727

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r105606 r105607  
    855855
    856856    /*
     857     * Set cbInstrBufTotal to zero if GCPtrInstrBufPcTag is within any of the tag ranges.
     858     * We make ASSUMPTIONS about IEMTLB_CALC_TAG_NO_REV here.
     859     */
     860    AssertCompile(IEMTLB_CALC_TAG_NO_REV((RTGCPTR)0x8731U << GUEST_PAGE_SHIFT) == 0x8731U);
     861    if (   !a_fDataTlb
     862        && GCPtrInstrBufPcTag - GCPtrTag < (a_f2MbLargePage ? 512U : 1024U))
     863        pVCpu->iem.s.cbInstrBufTotal = 0;
     864
     865    /*
    857866     * Combine TAG values with the TLB revisions.
    858867     */
     
    876885                                                     a_idxEvenIter, a_fDataTlb); \
    877886                        pTlb->aEntries[a_idxEvenIter].uTag = 0; \
    878                         if (!a_fDataTlb && GCPtrTag == GCPtrInstrBufPcTag) \
    879                             pVCpu->iem.s.cbInstrBufTotal = 0; \
    880887                    } \
    881888                } \
     
    892899                                                     a_idxEvenIter + 1, a_fDataTlb); \
    893900                        pTlb->aEntries[a_idxEvenIter + 1].uTag = 0; \
    894                         if (!a_fDataTlb && GCPtrTag == GCPtrInstrBufPcTag) \
    895                             pVCpu->iem.s.cbInstrBufTotal = 0; \
    896901                    } \
    897902                } \
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