vbox的更動 52318 路徑 trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
- 時間撮記:
- 2014-8-8 上午09:44:09 (10 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r51643 r52318 3315 3315 /* copy */ 3316 3316 size_t cbRead = PAGE_SIZE - ((RTGCUINTPTR)GCPtrSrc & PAGE_OFFSET_MASK); 3317 rc = PGMPhysRead(pVM, GCPhys, pvDst, cbRead); 3318 if (cbRead >= cb || RT_FAILURE(rc)) 3319 return rc; 3317 if (cbRead < cb) 3318 { 3319 rc = PGMPhysRead(pVM, GCPhys, pvDst, cbRead); 3320 if (RT_FAILURE(rc)) 3321 return rc; 3322 } 3323 else /* Last page (cbRead is PAGE_SIZE, we only need cb!) */ 3324 return PGMPhysRead(pVM, GCPhys, pvDst, cb); 3320 3325 3321 3326 /* next */ 3327 Assert(cb > cbRead); 3322 3328 cb -= cbRead; 3323 3329 pvDst = (uint8_t *)pvDst + cbRead; … … 3405 3411 /* copy */ 3406 3412 size_t cbWrite = PAGE_SIZE - ((RTGCUINTPTR)GCPtrDst & PAGE_OFFSET_MASK); 3407 rc = PGMPhysWrite(pVM, GCPhys, pvSrc, cbWrite); 3408 if (cbWrite >= cb || RT_FAILURE(rc)) 3409 return rc; 3413 if (cbWrite < cb) 3414 { 3415 rc = PGMPhysWrite(pVM, GCPhys, pvSrc, cbWrite); 3416 if (RT_FAILURE(rc)) 3417 return rc; 3418 } 3419 else /* Last page (cbWrite is PAGE_SIZE, we only need cb!) */ 3420 rc = PGMPhysWrite(pVM, GCPhys, pvSrc, cb); 3410 3421 3411 3422 /* next */ 3423 Assert(cb > cbWrite); 3412 3424 cb -= cbWrite; 3413 3425 pvSrc = (uint8_t *)pvSrc + cbWrite;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器