VirtualBox

儲存庫 vbox 的更動 38708


忽略:
時間撮記:
2011-9-9 下午02:38:59 (13 年 以前)
作者:
vboxsync
訊息:

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).

位置:
trunk/src/VBox/VMM
檔案:
修改 3 筆資料

圖例:

未更動
新增
刪除
  • 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
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette