VirtualBox

Changeset 38708 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 9, 2011 2:38:59 PM (13 years ago)
Author:
vboxsync
Message:

PGM: Drop the PGM_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST define and instead just select different defaults when reading MaxRing3Chunks from CFGM. Also, force a 3GB max limit on 32-bit darwin (previously unlimted).

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r38707 r38708  
    12641264    AssertLogRelRCReturn(rc, rc);
    12651265
    1266 #ifdef PGM_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST
     1266#if HC_ARCH_BITS == 32
     1267# ifdef RT_OS_DARWIN
     1268    rc = CFGMR3QueryU32Def(pCfgPGM, "MaxRing3Chunks", &pVM->pgm.s.ChunkR3Map.cMax, _1G / GMM_CHUNK_SIZE * 3);
     1269# else
    12671270    rc = CFGMR3QueryU32Def(pCfgPGM, "MaxRing3Chunks", &pVM->pgm.s.ChunkR3Map.cMax, _1G / GMM_CHUNK_SIZE);
     1271# endif
    12681272#else
    12691273    rc = CFGMR3QueryU32Def(pCfgPGM, "MaxRing3Chunks", &pVM->pgm.s.ChunkR3Map.cMax, UINT32_MAX);
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r38320 r38708  
    36863686}
    36873687
    3688 #ifdef PGM_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST
    36893688
    36903689/**
     
    39393938}
    39403939
    3941 #endif /* PGM_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST */
    39423940
    39433941/**
     
    40013999        if (pVM->pgm.s.ChunkR3Map.c >= pVM->pgm.s.ChunkR3Map.cMax)
    40024000        {
    4003 #ifdef PGM_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST
    40044001            /* Postpone the unmap operation (which requires a rendezvous operation) as we own the PGM lock here. */
    40054002            rc = VMR3ReqCallNoWaitU(pVM->pUVM, VMCPUID_ANY_QUEUE, (PFNRT)pgmR3PhysUnmapChunk, 1, pVM);
    40064003            AssertRC(rc);
    4007 #else
    4008             AssertFatalFailed();  /* can't happen */
    4009 #endif
    40104004        }
    40114005    }
  • trunk/src/VBox/VMM/include/PGMInternal.h

    r38707 r38708  
    9090#if 1 /* testing */
    9191# define PGM_WITH_MMIO_OPTIMIZATIONS
    92 #endif
    93 
    94 /**
    95  * Chunk unmapping code activated on 32-bit hosts for > 1.5/2 GB guest memory support
    96  */
    97 #if (HC_ARCH_BITS == 32) && !defined(RT_OS_DARWIN)
    98 # define PGM_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST
    9992#endif
    10093
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