VirtualBox

忽略:
時間撮記:
2007-9-11 上午09:53:55 (17 年 以前)
作者:
vboxsync
訊息:

Changed API for converting guest memory into CCPtrs.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r4689 r4692  
    378378 * This API should only be used for very short term, as it will consume
    379379 * scarse resources (R0 and GC) in the mapping cache. When you're done
    380  * with the page, call PGMPhysGCPhys2CCPtrRelease() ASAP to release it.
     380 * with the page, call PGMPhysReleasePageMappingLock() ASAP to release it.
    381381 *
    382382 * @returns VBox status code.
     
    388388 * @param   GCPhys      The guest physical address of the page that should be mapped.
    389389 * @param   ppv         Where to store the address corresponding to GCPhys.
     390 * @param   pLock       Where to store the lock information that PGMPhysReleasePageMappingLock needs.
    390391 *
    391392 * @remark  Avoid calling this API from within critical sections (other than
    392393 *          the PGM one) because of the deadlock risk.
    393394 */
    394 PGMDECL(int) PGMPhysGCPhys2CCPtr(PVM pVM, RTGCPHYS GCPhys, void **ppv)
     395PGMDECL(int) PGMPhysGCPhys2CCPtr(PVM pVM, RTGCPHYS GCPhys, void **ppv, PPGMPAGEMAPLOCK pLock)
    395396{
    396397# ifdef NEW_PHYS_CODE
     
    455456/**
    456457 * Release the mapping of a guest page.
    457  *
    458  * This is the counterpart to the PGMPhysGCPhys2CCPtr.
     458 * 
     459 * This is the counter part of PGMPhysGCPhys2CCPtr.
    459460 *
    460461 * @param   pVM         The VM handle.
    461  * @param   GCPhys      The address that was mapped using PGMPhysGCPhys2CCPtr.
    462  * @param   pv          The address that PGMPhysGCPhys2CCPtr returned.
    463  */
    464 PGMDECL(void) PGMPhysGCPhys2CCPtrRelease(PVM pVM, RTGCPHYS GCPhys, void *pv)
     462 * @param   pLock       The lock structure initialized by the mapping function.
     463 */
     464PGMDECL(void) PGMPhysReleasePageMappingLock(PVM pVM, PPGMPAGEMAPLOCK pLock)
    465465{
    466466#ifdef NEW_PHYS_CODE
     
    536536#else
    537537    NOREF(pVM);
    538     NOREF(GCPhys);
    539     NOREF(pv);
     538    NOREF(pLock);
    540539#endif
    541540}
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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