VirtualBox

Changeset 93931 in vbox for trunk/src/bldprogs


Ignore:
Timestamp:
Feb 24, 2022 4:02:00 PM (3 years ago)
Author:
vboxsync
Message:

VMM,VMMDev,scm,VBox/param.h: Don't use PAGE_BASE_GC_MASK and friends in the VMM. bugref:9898

Location:
trunk/src/bldprogs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/scm.cpp

    r93687 r93931  
    29192919            case SCMOPT_ONLY_GUEST_HOST_PAGE:
    29202920                RTPrintf("      No PAGE_SIZE, PAGE_SHIFT or PAGE_OFFSET_MASK allowed, must have\n"
    2921                          "      GUEST_ or HOST_ prefix.  Default: %RTbool\n", g_Defaults.fOnlyGuestHostPage);
     2921                         "      GUEST_ or HOST_ prefix.  Also forbids use of PAGE_BASE_MASK,\n"
     2922                         "      PAGE_BASE_HC_MASK and PAGE_BASE_GC_MASK  Default: %RTbool\n", g_Defaults.fOnlyGuestHostPage);
    29222923                break;
    29232924            case SCMOPT_NO_ASM_MEM_PAGE_USE:
  • trunk/src/bldprogs/scmrw.cpp

    r93686 r93931  
    32543254/**
    32553255 * Checks for PAGE_SIZE, PAGE_SHIFT and PAGE_OFFSET_MASK w/o a GUEST_ or HOST_
    3256  * prefix.
     3256 * prefix as well as banning PAGE_BASE_HC_MASK, PAGE_BASE_GC_MASK and
     3257 * PAGE_BASE_MASK.
    32573258 *
    32583259 * @returns true if modifications were made, false if not.
     
    32723273        { RT_STR_TUPLE("PAGE_SHIFT") },
    32733274        { RT_STR_TUPLE("PAGE_OFFSET_MASK") },
     3275        { RT_STR_TUPLE("PAGE_BASE_MASK") },
     3276        { RT_STR_TUPLE("PAGE_BASE_GC_MASK") },
     3277        { RT_STR_TUPLE("PAGE_BASE_HC_MASK") },
    32743278        { RT_STR_TUPLE("ASMMemIsZeroPage") },
    32753279        { RT_STR_TUPLE("ASMMemZeroPage") },
    32763280    };
    3277     size_t const iFirstWord = pSettings->fOnlyGuestHostPage ? 0 : 3;
    3278     size_t const iEndWords  = pSettings->fNoASMMemPageUse   ? 5 : 3;
     3281    size_t const iFirstWord = pSettings->fOnlyGuestHostPage ? 0 : 5;
     3282    size_t const iEndWords  = pSettings->fNoASMMemPageUse   ? 7 : 5;
    32793283
    32803284    uint32_t    iLine = 0;
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