VirtualBox

Changeset 102689 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Dec 22, 2023 3:44:59 AM (17 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160856
Message:

VMM/CPUM: bugref:10498 Align guest RAM to 4K pages prior to mapping it via MTRRs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r102677 r102689  
    37073707        return VINF_SUCCESS;
    37083708    }
     3709    if (!(cbRam & ~X86_PAGE_4K_BASE_MASK))
     3710    { /* likely */ }
     3711    else
     3712    {
     3713        LogRel(("CPUM: WARNING! RAM size %u bytes is not 4K aligned, using %u bytes\n", cbRam, cbRam & X86_PAGE_4K_BASE_MASK));
     3714        cbRam &= X86_PAGE_4K_BASE_MASK;
     3715    }
    37093716
    37103717    /*
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