VirtualBox

忽略:
時間撮記:
2009-8-26 下午05:14:13 (15 年 以前)
作者:
vboxsync
訊息:

SSM,VMM,Devices,Main,VBoxBFE: Live snapshot/migration SSM API adjustments.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Input/DevPS2.cpp

    r22462 r22480  
    14281428 * @param   pDevIns     The device instance.
    14291429 * @param   pSSMHandle  The handle to the saved state.
    1430  * @param   u32Version  The data unit version number.
     1430 * @param   uVersion    The data unit version number.
     1431 * @param   uPhase      The data phase.
    14311432 */
    1432 static DECLCALLBACK(int) kbdLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t u32Version)
    1433 {
    1434     return kbd_load(pSSMHandle, PDMINS_2_DATA(pDevIns, KBDState *), u32Version);
     1433static DECLCALLBACK(int) kbdLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t uVersion, uint32_t uPhase)
     1434{
     1435    Assert(uPhase == SSM_PHASE_FINAL); NOREF(uPhase);
     1436    return kbd_load(pSSMHandle, PDMINS_2_DATA(pDevIns, KBDState *), uVersion);
    14351437}
    14361438
     
    16701672}
    16711673
     1674
    16721675/**
    16731676 * @copydoc FNPDMDEVRELOCATE
     
    16791682}
    16801683
     1684
    16811685/**
    16821686 * Destruct a device instance for a VM.
     
    16921696    return VINF_SUCCESS;
    16931697}
     1698
    16941699
    16951700/**
     
    17761781            return rc;
    17771782    }
    1778     rc = PDMDevHlpSSMRegister(pDevIns, g_DevicePS2KeyboardMouse.szDeviceName, iInstance, PCKBD_SAVED_STATE_VERSION, sizeof(*pThis),
    1779                               NULL, kbdSaveExec, NULL,
    1780                               NULL, kbdLoadExec, NULL);
     1783    rc = PDMDevHlpSSMRegister(pDevIns, PCKBD_SAVED_STATE_VERSION, sizeof(*pThis), kbdSaveExec, kbdLoadExec);
    17811784    if (RT_FAILURE(rc))
    17821785        return rc;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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