vbox的更動 4692 路徑 trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
- 時間撮記:
- 2007-9-11 上午09:53:55 (17 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r4689 r4692 378 378 * This API should only be used for very short term, as it will consume 379 379 * scarse resources (R0 and GC) in the mapping cache. When you're done 380 * with the page, call PGMPhys GCPhys2CCPtrRelease() ASAP to release it.380 * with the page, call PGMPhysReleasePageMappingLock() ASAP to release it. 381 381 * 382 382 * @returns VBox status code. … … 388 388 * @param GCPhys The guest physical address of the page that should be mapped. 389 389 * @param ppv Where to store the address corresponding to GCPhys. 390 * @param pLock Where to store the lock information that PGMPhysReleasePageMappingLock needs. 390 391 * 391 392 * @remark Avoid calling this API from within critical sections (other than 392 393 * the PGM one) because of the deadlock risk. 393 394 */ 394 PGMDECL(int) PGMPhysGCPhys2CCPtr(PVM pVM, RTGCPHYS GCPhys, void **ppv )395 PGMDECL(int) PGMPhysGCPhys2CCPtr(PVM pVM, RTGCPHYS GCPhys, void **ppv, PPGMPAGEMAPLOCK pLock) 395 396 { 396 397 # ifdef NEW_PHYS_CODE … … 455 456 /** 456 457 * Release the mapping of a guest page. 457 * 458 * This is the counter part to thePGMPhysGCPhys2CCPtr.458 * 459 * This is the counter part of PGMPhysGCPhys2CCPtr. 459 460 * 460 461 * @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 */ 464 PGMDECL(void) PGMPhysReleasePageMappingLock(PVM pVM, PPGMPAGEMAPLOCK pLock) 465 465 { 466 466 #ifdef NEW_PHYS_CODE … … 536 536 #else 537 537 NOREF(pVM); 538 NOREF(GCPhys); 539 NOREF(pv); 538 NOREF(pLock); 540 539 #endif 541 540 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器