VirtualBox

Ignore:
Timestamp:
Sep 1, 2023 2:03:12 PM (15 months ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:10318 Naming consistency nits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r101001 r101002  
    27972797        Assert(pShwPage->enmKind == PGMPOOLKIND_EPT_PT_FOR_EPT_2MB);
    27982798#endif
    2799         uint64_t const fGstPteFlags = (pGstWalkAll->u.Ept.Pde.u & pVCpu->pgm.s.fGstEptShadowedBigPdeMask & ~EPT_E_LEAF)
    2800                                     | EPT_E_MEMTYPE_WB | EPT_E_IGNORE_PAT;
    2801         pGstWalkAll->u.Ept.Pte.u = GCPhysPage | fGstPteFlags;
     2799        uint64_t const fGstShwPteFlags = (pGstWalkAll->u.Ept.Pde.u & pVCpu->pgm.s.fGstEptShadowedBigPdeMask & ~EPT_E_LEAF)
     2800                                       | EPT_E_MEMTYPE_WB | EPT_E_IGNORE_PAT;
     2801        pGstWalkAll->u.Ept.Pte.u = GCPhysPage | fGstShwPteFlags;
    28022802
    28032803        unsigned const iPte = (GCPhysNestedPage >> SHW_PT_SHIFT) & SHW_PT_MASK;
     
    29902990         * If we have a 2M backing page, we can map the guest's 2M page right away.
    29912991         */
    2992         uint64_t const fShwBigPdeFlags = (pGstWalkAll->u.Ept.Pde.u & pVCpu->pgm.s.fGstEptShadowedBigPdeMask)
    2993                                        | EPT_E_MEMTYPE_WB | EPT_E_IGNORE_PAT;
     2992        uint64_t const fGstShwBigPdeFlags = (pGstWalkAll->u.Ept.Pde.u & pVCpu->pgm.s.fGstEptShadowedBigPdeMask)
     2993                                          | EPT_E_MEMTYPE_WB | EPT_E_IGNORE_PAT;
    29942994        if (HCPhys != NIL_RTHCPHYS)
    29952995        {
    2996             Pde.u = HCPhys | fShwBigPdeFlags;
     2996            Pde.u = HCPhys | fGstShwBigPdeFlags;
    29972997            Assert(!(Pde.u & pVCpu->pgm.s.fGstEptMbzBigPdeMask));
    29982998            Assert(Pde.u & EPT_E_LEAF);
     
    30483048        {
    30493049            /* The 4K PTEs shall inherit the flags of the 2M PDE page sans the leaf bit. */
    3050             uint64_t const fShwPteFlags = fShwBigPdeFlags & ~EPT_E_LEAF;
     3050            uint64_t const fGstShwPteFlags = fGstShwBigPdeFlags & ~EPT_E_LEAF;
    30513051
    30523052            /* Sync each 4K pages in the 2M range. */
     
    30543054            {
    30553055                RTGCPHYS const GCPhysSubPage = GCPhysPt | (iPte << GUEST_PAGE_SHIFT);
    3056                 pGstWalkAll->u.Ept.Pte.u = GCPhysSubPage | fShwPteFlags;
     3056                pGstWalkAll->u.Ept.Pte.u = GCPhysSubPage | fGstShwPteFlags;
    30573057                Assert(!(pGstWalkAll->u.Ept.Pte.u & pVCpu->pgm.s.fGstEptMbzPteMask));
    30583058                PGM_BTH_NAME(NestedSyncPageWorker)(pVCpu, &pPt->a[iPte], GCPhysSubPage, pShwPage, iPte, pGstWalkAll);
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