Changeset 23714 in vbox
- Timestamp:
- Oct 13, 2009 9:13:43 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
include/VBox/err.h (modified) (1 diff)
-
include/VBox/err.mac (modified) (1 diff)
-
src/VBox/VMM/SSM.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/err.h
r23709 r23714 573 573 /** Vote for giving up. */ 574 574 #define VERR_SSM_VOTE_FOR_GIVING_UP (-1853) 575 /** Don't call again until the final pass. */ 576 #define VINF_SSM_DONT_CALL_AGAIN 1854 575 577 /** Giving up a live snapshot/migration attempt because of too many passes. */ 576 #define VERR_SSM_TOO_MANY_PASSES (-185 4)578 #define VERR_SSM_TOO_MANY_PASSES (-1855) 577 579 /** Giving up a live snapshot/migration attempt because the state grew to 578 580 * big. */ 579 #define VERR_SSM_STATE_GREW_TOO_BIG (-185 5)581 #define VERR_SSM_STATE_GREW_TOO_BIG (-1856) 580 582 /** Giving up a live snapshot attempt because we're low on disk space. */ 581 #define VERR_SSM_LOW_ON_DISK_SPACE (-185 6)583 #define VERR_SSM_LOW_ON_DISK_SPACE (-1857) 582 584 /** The operation was cancelled. */ 583 #define VERR_SSM_CANCELLED (-185 7)585 #define VERR_SSM_CANCELLED (-1858) 584 586 /** Nothing that can be cancelled. */ 585 #define VERR_SSM_NO_PENDING_OPERATION (-185 8)587 #define VERR_SSM_NO_PENDING_OPERATION (-1859) 586 588 /** The operation has already been cancelled. */ 587 #define VERR_SSM_ALREADY_CANCELLED (-18 59)589 #define VERR_SSM_ALREADY_CANCELLED (-1860) 588 590 /** The machine was powered off while saving. */ 589 #define VERR_SSM_LIVE_POWERED_OFF (-186 0)591 #define VERR_SSM_LIVE_POWERED_OFF (-1861) 590 592 /** The live snapshot/migration operation was aborted because of a guru 591 593 * meditation. */ 592 #define VERR_SSM_LIVE_GURU_MEDITATION (-186 1)594 #define VERR_SSM_LIVE_GURU_MEDITATION (-1862) 593 595 /** The live snapshot/migration operation was aborted because of a fatal runtime 594 596 * error. */ 595 #define VERR_SSM_LIVE_FATAL_ERROR (-186 2)597 #define VERR_SSM_LIVE_FATAL_ERROR (-1863) 596 598 /** The VM was suspended while saving, don't resume execution. */ 597 #define VINF_SSM_LIVE_SUSPENDED 186 3599 #define VINF_SSM_LIVE_SUSPENDED 1864 598 600 /** @} */ 599 601 -
trunk/include/VBox/err.mac
r23151 r23714 193 193 %define VERR_SSM_GCPTR_OVERFLOW (-1850) 194 194 %define VINF_SSM_VOTE_FOR_ANOTHER_PASS 1851 195 %define VERR_SSM_VOTE_FOR_GIVING_UP (-1852) 196 %define VERR_SSM_TOO_MANY_PASSES (-1853) 197 %define VERR_SSM_STATE_GREW_TOO_BIG (-1854) 198 %define VERR_SSM_LOW_ON_DISK_SPACE (-1855) 199 %define VERR_SSM_CANCELLED (-1856) 200 %define VERR_SSM_NO_PENDING_OPERATION (-1857) 201 %define VERR_SSM_ALREADY_CANCELLED (-1858) 202 %define VERR_SSM_LIVE_POWERED_OFF (-1859) 203 %define VERR_SSM_LIVE_GURU_MEDITATION (-1860) 204 %define VERR_SSM_LIVE_FATAL_ERROR (-1861) 205 %define VINF_SSM_LIVE_SUSPENDED 1862 195 %define VINF_SSM_VOTE_DONE_DONT_CALL_AGAIN 1852 196 %define VERR_SSM_VOTE_FOR_GIVING_UP (-1853) 197 %define VINF_SSM_DONT_CALL_AGAIN 1854 198 %define VERR_SSM_TOO_MANY_PASSES (-1855) 199 %define VERR_SSM_STATE_GREW_TOO_BIG (-1856) 200 %define VERR_SSM_LOW_ON_DISK_SPACE (-1857) 201 %define VERR_SSM_CANCELLED (-1858) 202 %define VERR_SSM_NO_PENDING_OPERATION (-1859) 203 %define VERR_SSM_ALREADY_CANCELLED (-1860) 204 %define VERR_SSM_LIVE_POWERED_OFF (-1861) 205 %define VERR_SSM_LIVE_GURU_MEDITATION (-1862) 206 %define VERR_SSM_LIVE_FATAL_ERROR (-1863) 207 %define VINF_SSM_LIVE_SUSPENDED 1864 206 208 %define VERR_VM_ATRESET_NOT_FOUND (-1900) 207 209 %define VERR_VM_REQUEST_INVALID_TYPE (-1901) -
trunk/src/VBox/VMM/SSM.cpp
r23709 r23714 899 899 { 900 900 if (uPass == 0) 901 return ssmR3SelfSaveExec(pVM, pSSM); 902 return VINF_SUCCESS; 901 { 902 int rc = ssmR3SelfSaveExec(pVM, pSSM); 903 if (RT_SUCCESS(rc)) 904 rc = VINF_SSM_DONT_CALL_AGAIN; 905 return rc; 906 } 907 AssertFailed(); 908 return VERR_INTERNAL_ERROR_3; 903 909 } 904 910 … … 4408 4414 pSSM->rc = rc; 4409 4415 else 4416 { 4417 if (rc == VINF_SSM_DONT_CALL_AGAIN) 4418 pUnit->fDoneLive = true; 4410 4419 rc = ssmR3DataFlushBuffer(pSSM); /* will return SSMHANDLE::rc if it is set */ 4420 } 4411 4421 if (RT_FAILURE(rc)) 4412 4422 {
Note:
See TracChangeset
for help on using the changeset viewer.

