VirtualBox

Ignore:
Timestamp:
Feb 2, 2022 10:57:02 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149688
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/VMMR3/MMPagePool.cpp

    r93115 r93554  
    4343    if (!pVM->mm.s.pvDummyPage)
    4444    {
    45         int rc = MMHyperAlloc(pVM, PAGE_SIZE, PAGE_SIZE, MM_TAG_PGM, &pVM->mm.s.pvDummyPage);
     45        /** @todo Redo this. */
     46        int rc = MMHyperAlloc(pVM, RT_MAX(GUEST_PAGE_SIZE, HOST_PAGE_SIZE), GUEST_PAGE_SIZE, MM_TAG_PGM, &pVM->mm.s.pvDummyPage);
    4647        AssertRelease(RT_SUCCESS(rc));
    4748        AssertRelease(pVM->mm.s.pvDummyPage);
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