VirtualBox

忽略:
時間撮記:
2007-5-14 上午04:58:51 (18 年 以前)
作者:
vboxsync
訊息:

UCTOffset (ns).

檔案:
修改 1 筆資料

圖例:

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

    r2551 r2611  
    5050/**
    5151 * Get the time when we're not running at 100%
    52  * 
     52 *
    5353 * @returns The timestamp.
    5454 * @param   pVM     The VM handle.
     
    5656static uint64_t tmVirtualGetRawNonNormal(PVM pVM)
    5757{
    58     /* 
    59      * Recalculate the RTTimeNanoTS() value for the period where 
     58    /*
     59     * Recalculate the RTTimeNanoTS() value for the period where
    6060     * warp drive has been enabled.
    6161     */
     
    6666    u64 += pVM->tm.s.u64VirtualWarpDriveStart;
    6767
    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
    7171     * started if it had been running continuously without any suspends.)
    7272     */
     
    7878/**
    7979 * Get the raw virtual time.
    80  * 
    81  * @returns The current time stamp. 
     80 *
     81 * @returns The current time stamp.
    8282 * @param   pVM     The VM handle.
    8383 */
     
    300300/**
    301301 * Gets the current lag of the synchronous virtual clock (relative to the virtual clock).
    302  * 
     302 *
    303303 * @return  The current lag.
    304304 * @param   pVM     VM handle.
     
    312312/**
    313313 * Get the current catch-up percent.
    314  * 
     314 *
    315315 * @return  The current catch0up percent. 0 means running at the same speed as the virtual clock.
    316316 * @param   pVM     VM handle.
     
    385385/**
    386386 * Gets the current warp drive percent.
    387  * 
     387 *
    388388 * @returns The warp drive percent.
    389389 * @param   pVM         The VM handle.
     
    397397/**
    398398 * Sets the warp drive percent of the virtual time.
    399  * 
     399 *
    400400 * @returns VBox status code.
    401401 * @param   pVM         The VM handle.
     
    404404TMDECL(int) TMVirtualSetWarpDrive(PVM pVM, uint32_t u32Percent)
    405405{
     406/** @todo This isn't a feature specific to virtual time, move to TM level. (It
     407 * should affect the TMR3UCTNow as well! */
    406408#ifdef IN_RING3
    407409    PVMREQ pReq;
     
    414416
    415417    return tmVirtualSetWarpDrive(pVM, u32Percent);
    416 #endif 
     418#endif
    417419}
    418420
     
    420422/**
    421423 * EMT worker for tmVirtualSetWarpDrive.
    422  * 
     424 *
    423425 * @returns VBox status code.
    424426 * @param   pVM         The VM handle.
     
    431433     * Validate it.
    432434     */
    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),
    435437                    VERR_INVALID_PARAMETER);
    436438
    437     /* 
     439    /*
    438440     * If the time is running we'll have to pause it before we can change
    439441     * the warp drive settings.
     
    450452    pVM->tm.s.u32VirtualWarpDrivePercentage = u32Percent;
    451453    pVM->tm.s.fVirtualWarpDrive = u32Percent != 100;
    452     LogRel(("TM: u32VirtualWarpDrivePercentage=%RI32 fVirtualWarpDrive=%RTbool\n", 
     454    LogRel(("TM: u32VirtualWarpDrivePercentage=%RI32 fVirtualWarpDrive=%RTbool\n",
    453455            pVM->tm.s.u32VirtualWarpDrivePercentage, pVM->tm.s.fVirtualWarpDrive));
    454456
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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