vbox的更動 2611 路徑 trunk/src/VBox/VMM/VMMAll/TMAllVirtual.cpp
- 時間撮記:
- 2007-5-14 上午04:58:51 (18 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMAll/TMAllVirtual.cpp
r2551 r2611 50 50 /** 51 51 * Get the time when we're not running at 100% 52 * 52 * 53 53 * @returns The timestamp. 54 54 * @param pVM The VM handle. … … 56 56 static uint64_t tmVirtualGetRawNonNormal(PVM pVM) 57 57 { 58 /* 59 * Recalculate the RTTimeNanoTS() value for the period where 58 /* 59 * Recalculate the RTTimeNanoTS() value for the period where 60 60 * warp drive has been enabled. 61 61 */ … … 66 66 u64 += pVM->tm.s.u64VirtualWarpDriveStart; 67 67 68 /* 69 * Now we apply the virtual time offset. 70 * (Which is the negate RTTimeNanoTS() value for when the virtual machine 68 /* 69 * Now we apply the virtual time offset. 70 * (Which is the negate RTTimeNanoTS() value for when the virtual machine 71 71 * started if it had been running continuously without any suspends.) 72 72 */ … … 78 78 /** 79 79 * Get the raw virtual time. 80 * 81 * @returns The current time stamp. 80 * 81 * @returns The current time stamp. 82 82 * @param pVM The VM handle. 83 83 */ … … 300 300 /** 301 301 * Gets the current lag of the synchronous virtual clock (relative to the virtual clock). 302 * 302 * 303 303 * @return The current lag. 304 304 * @param pVM VM handle. … … 312 312 /** 313 313 * Get the current catch-up percent. 314 * 314 * 315 315 * @return The current catch0up percent. 0 means running at the same speed as the virtual clock. 316 316 * @param pVM VM handle. … … 385 385 /** 386 386 * Gets the current warp drive percent. 387 * 387 * 388 388 * @returns The warp drive percent. 389 389 * @param pVM The VM handle. … … 397 397 /** 398 398 * Sets the warp drive percent of the virtual time. 399 * 399 * 400 400 * @returns VBox status code. 401 401 * @param pVM The VM handle. … … 404 404 TMDECL(int) TMVirtualSetWarpDrive(PVM pVM, uint32_t u32Percent) 405 405 { 406 /** @todo This isn't a feature specific to virtual time, move to TM level. (It 407 * should affect the TMR3UCTNow as well! */ 406 408 #ifdef IN_RING3 407 409 PVMREQ pReq; … … 414 416 415 417 return tmVirtualSetWarpDrive(pVM, u32Percent); 416 #endif 418 #endif 417 419 } 418 420 … … 420 422 /** 421 423 * EMT worker for tmVirtualSetWarpDrive. 422 * 424 * 423 425 * @returns VBox status code. 424 426 * @param pVM The VM handle. … … 431 433 * Validate it. 432 434 */ 433 AssertMsgReturn(u32Percent >= 2 && u32Percent <= 20000, 434 ("%RX32 is not between 2 and 20000 (inclusive).\n", u32Percent), 435 AssertMsgReturn(u32Percent >= 2 && u32Percent <= 20000, 436 ("%RX32 is not between 2 and 20000 (inclusive).\n", u32Percent), 435 437 VERR_INVALID_PARAMETER); 436 438 437 /* 439 /* 438 440 * If the time is running we'll have to pause it before we can change 439 441 * the warp drive settings. … … 450 452 pVM->tm.s.u32VirtualWarpDrivePercentage = u32Percent; 451 453 pVM->tm.s.fVirtualWarpDrive = u32Percent != 100; 452 LogRel(("TM: u32VirtualWarpDrivePercentage=%RI32 fVirtualWarpDrive=%RTbool\n", 454 LogRel(("TM: u32VirtualWarpDrivePercentage=%RI32 fVirtualWarpDrive=%RTbool\n", 453 455 pVM->tm.s.u32VirtualWarpDrivePercentage, pVM->tm.s.fVirtualWarpDrive)); 454 456
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器