VirtualBox

Ignore:
Timestamp:
Feb 2, 2022 10:57:02 PM (3 years ago)
Author:
vboxsync
Message:

VMM: Changed PAGE_SIZE -> GUEST_PAGE_SIZE / HOST_PAGE_SIZE, PAGE_SHIFT -> GUEST_PAGE_SHIFT / HOST_PAGE_SHIFT, and PAGE_OFFSET_MASK -> GUEST_PAGE_OFFSET_MASK / HOST_PAGE_OFFSET_MASK. Also removed most usage of ASMMemIsZeroPage and ASMMemZeroPage since the host and guest page size doesn't need to be the same any more. Some work left to do in the page pool code. bugref:9898

File:
1 edited

Legend:

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

    r93160 r93554  
    336336        pWalk->fSucceeded = true;
    337337        RTGCPHYS GCPhysPte = GST_GET_PTE_GCPHYS(Pte)
    338                            | (GCPtr & PAGE_OFFSET_MASK);
     338                           | (GCPtr & GUEST_PAGE_OFFSET_MASK);
    339339# ifdef VBOX_WITH_NESTED_HWVIRT_VMX_EPT
    340340        PGM_GST_SLAT_WALK(pVCpu, GCPtr, GCPhysPte, GCPhysPte, pWalk);
     
    406406    }
    407407
    408     pWalk->GCPhys    &= ~(RTGCPHYS)PAGE_OFFSET_MASK;
     408    pWalk->GCPhys    &= ~(RTGCPHYS)GUEST_PAGE_OFFSET_MASK;
    409409    pWalk->fEffective = fFlags;
    410410    return VINF_SUCCESS;
     
    432432PGM_GST_DECL(int, ModifyPage)(PVMCPUCC pVCpu, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask)
    433433{
    434     Assert((cb & PAGE_OFFSET_MASK) == 0); RT_NOREF_PV(cb);
     434    Assert((cb & GUEST_PAGE_OFFSET_MASK) == 0); RT_NOREF_PV(cb);
    435435
    436436#if PGM_GST_TYPE == PGM_TYPE_32BIT \
     
    461461
    462462                /* next page */
    463                 cb -= PAGE_SIZE;
     463                cb -= GUEST_PAGE_SIZE;
    464464                if (!cb)
    465465                    return VINF_SUCCESS;
    466                 GCPtr += PAGE_SIZE;
     466                GCPtr += GUEST_PAGE_SIZE;
    467467                iPTE++;
    468468            }
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