Changeset 22803 in vbox
- Timestamp:
- Sep 7, 2009 11:01:57 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/ssm.h
r22793 r22803 639 639 PFNSSMEXTSAVEPREP pfnSavePrep, PFNSSMEXTSAVEEXEC pfnSaveExec, PFNSSMEXTSAVEDONE pfnSaveDone, 640 640 PFNSSMEXTLOADPREP pfnLoadPrep, PFNSSMEXTLOADEXEC pfnLoadExec, PFNSSMEXTLOADDONE pfnLoadDone, void *pvUser); 641 VMMR3 DECL(int) SSMR3DeregisterDevice(PVM pVM, PPDMDEVINS pDevIns, const char *pszName, uint32_t uInstance);642 VMMR3 DECL(int) SSMR3DeregisterDriver(PVM pVM, PPDMDRVINS pDrvIns, const char *pszName, uint32_t uInstance);643 VMMR3DECL(int) SSMR3DeregisterInternal(PVM pVM, const char *pszName);644 VMMR3DECL(int) SSMR3DeregisterExternal(PVM pVM, const char *pszName);645 VMMR3DECL(int) SSMR3Save(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, PFNVMPROGRESS pfnProgress, void *pvUser);646 VMMR3 DECL(int) SSMR3LiveToFile(PVM pVM, const char *pszFilename, SSMAFTER enmAfter,647 PFNVMPROGRESS pfnProgress, void *pvUser, PSSMHANDLE *ppSSM);648 VMMR3 DECL(int) SSMR3LiveDoStep1(PSSMHANDLE pSSM);649 VMMR3 DECL(int) SSMR3LiveDoStep2(PSSMHANDLE pSSM);650 VMMR3 DECL(int) SSMR3LiveDone(PSSMHANDLE pSSM);651 VMMR3DECL(int) SSMR3Load(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, PFNVMPROGRESS pfnProgress, void *pvUser);652 VMMR3DECL(int) SSMR3ValidateFile(const char *pszFilename, bool fChecksumIt);653 VMMR3DECL(int) SSMR3Open(const char *pszFilename, unsigned fFlags, PSSMHANDLE *ppSSM);654 VMMR3DECL(int) SSMR3Close(PSSMHANDLE pSSM);655 VMMR3DECL(int) SSMR3Seek(PSSMHANDLE pSSM, const char *pszUnit, uint32_t iInstance, uint32_t *piVersion);656 VMMR3DECL(int) SSMR3HandleGetStatus(PSSMHANDLE pSSM);657 VMMR3DECL(int) SSMR3HandleSetStatus(PSSMHANDLE pSSM, int iStatus);641 VMMR3_INT_DECL(int) SSMR3DeregisterDevice(PVM pVM, PPDMDEVINS pDevIns, const char *pszName, uint32_t uInstance); 642 VMMR3_INT_DECL(int) SSMR3DeregisterDriver(PVM pVM, PPDMDRVINS pDrvIns, const char *pszName, uint32_t uInstance); 643 VMMR3DECL(int) SSMR3DeregisterInternal(PVM pVM, const char *pszName); 644 VMMR3DECL(int) SSMR3DeregisterExternal(PVM pVM, const char *pszName); 645 VMMR3DECL(int) SSMR3Save(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, PFNVMPROGRESS pfnProgress, void *pvUser); 646 VMMR3_INT_DECL(int) SSMR3LiveToFile(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, 647 PFNVMPROGRESS pfnProgress, void *pvUser, PSSMHANDLE *ppSSM); 648 VMMR3_INT_DECL(int) SSMR3LiveDoStep1(PSSMHANDLE pSSM); 649 VMMR3_INT_DECL(int) SSMR3LiveDoStep2(PSSMHANDLE pSSM); 650 VMMR3_INT_DECL(int) SSMR3LiveDone(PSSMHANDLE pSSM); 651 VMMR3DECL(int) SSMR3Load(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, PFNVMPROGRESS pfnProgress, void *pvUser); 652 VMMR3DECL(int) SSMR3ValidateFile(const char *pszFilename, bool fChecksumIt); 653 VMMR3DECL(int) SSMR3Open(const char *pszFilename, unsigned fFlags, PSSMHANDLE *ppSSM); 654 VMMR3DECL(int) SSMR3Close(PSSMHANDLE pSSM); 655 VMMR3DECL(int) SSMR3Seek(PSSMHANDLE pSSM, const char *pszUnit, uint32_t iInstance, uint32_t *piVersion); 656 VMMR3DECL(int) SSMR3HandleGetStatus(PSSMHANDLE pSSM); 657 VMMR3DECL(int) SSMR3HandleSetStatus(PSSMHANDLE pSSM, int iStatus); 658 658 VMMR3DECL(SSMAFTER) SSMR3HandleGetAfter(PSSMHANDLE pSSM); 659 659 VMMR3DECL(uint64_t) SSMR3HandleGetUnitOffset(PSSMHANDLE pSSM); 660 VMMR3 DECL(int) SSMR3SetGCPtrSize(PSSMHANDLE pSSM, unsigned cbGCPtr);660 VMMR3_INT_DECL(int) SSMR3SetGCPtrSize(PSSMHANDLE pSSM, unsigned cbGCPtr); 661 661 662 662 -
trunk/src/VBox/VMM/SSM.cpp
r22793 r22803 1211 1211 * @remark Only for dynmaic data units and dynamic unloaded modules. 1212 1212 */ 1213 VMMR3 DECL(int) SSMR3DeregisterDevice(PVM pVM, PPDMDEVINS pDevIns, const char *pszName, uint32_t uInstance)1213 VMMR3_INT_DECL(int) SSMR3DeregisterDevice(PVM pVM, PPDMDEVINS pDevIns, const char *pszName, uint32_t uInstance) 1214 1214 { 1215 1215 /* … … 1287 1287 * @remark Only for dynmaic data units and dynamic unloaded modules. 1288 1288 */ 1289 VMMR3 DECL(int) SSMR3DeregisterDriver(PVM pVM, PPDMDRVINS pDrvIns, const char *pszName, uint32_t uInstance)1289 VMMR3_INT_DECL(int) SSMR3DeregisterDriver(PVM pVM, PPDMDRVINS pDrvIns, const char *pszName, uint32_t uInstance) 1290 1290 { 1291 1291 /* … … 3355 3355 * @thread EMT(0). 3356 3356 */ 3357 VMMR3 DECL(int) SSMR3LiveDone(PSSMHANDLE pSSM)3357 VMMR3_INT_DECL(int) SSMR3LiveDone(PSSMHANDLE pSSM) 3358 3358 { 3359 3359 LogFlow(("SSMR3LiveDone: pSSM=%p\n", pSSM)); … … 3786 3786 * @thread Non-EMT thread. Will involve the EMT at the end of the operation. 3787 3787 */ 3788 VMMR3 DECL(int) SSMR3LiveDoStep2(PSSMHANDLE pSSM)3788 VMMR3_INT_DECL(int) SSMR3LiveDoStep2(PSSMHANDLE pSSM) 3789 3789 { 3790 3790 LogFlow(("SSMR3LiveDoStep2: pSSM=%p\n", pSSM)); … … 4147 4147 * @thread Non-EMT thread. Will involve the EMT at the end of the operation. 4148 4148 */ 4149 VMMR3 DECL(int) SSMR3LiveDoStep1(PSSMHANDLE pSSM)4149 VMMR3_INT_DECL(int) SSMR3LiveDoStep1(PSSMHANDLE pSSM) 4150 4150 { 4151 4151 LogFlow(("SSMR3LiveDoStep1: pSSM=%p\n", pSSM)); … … 4333 4333 * @thread EMT0 4334 4334 */ 4335 VMMR3 DECL(int) SSMR3LiveToFile(PVM pVM, const char *pszFilename, SSMAFTER enmAfter,4336 PFNVMPROGRESS pfnProgress, void *pvUser, PSSMHANDLE *ppSSM)4335 VMMR3_INT_DECL(int) SSMR3LiveToFile(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, 4336 PFNVMPROGRESS pfnProgress, void *pvUser, PSSMHANDLE *ppSSM) 4337 4337 { 4338 4338 LogFlow(("SSMR3LiveToFile: pszFilename=%p:{%s} enmAfter=%d pfnProgress=%p pvUser=%p\n", pszFilename, pszFilename, enmAfter, pfnProgress, pvUser)); … … 5467 5467 * format isn't 1.1 the call will be ignored. 5468 5468 */ 5469 VMMR3 DECL(int) SSMR3SetGCPtrSize(PSSMHANDLE pSSM, unsigned cbGCPtr)5469 VMMR3_INT_DECL(int) SSMR3SetGCPtrSize(PSSMHANDLE pSSM, unsigned cbGCPtr) 5470 5470 { 5471 5471 Assert(cbGCPtr == sizeof(RTGCPTR32) || cbGCPtr == sizeof(RTGCPTR64));
Note:
See TracChangeset
for help on using the changeset viewer.