VirtualBox

Changeset 23714 in vbox


Ignore:
Timestamp:
Oct 13, 2009 9:13:43 AM (15 years ago)
Author:
vboxsync
Message:

SSM,VBox/err.*: VINF_SSM_DONT_CALL_AGAIN from pfnLiveExec.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/err.h

    r23709 r23714  
    573573/** Vote for giving up.  */
    574574#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
    575577/** Giving up a live snapshot/migration attempt because of too many passes. */
    576 #define VERR_SSM_TOO_MANY_PASSES                (-1854)
     578#define VERR_SSM_TOO_MANY_PASSES                (-1855)
    577579/** Giving up a live snapshot/migration attempt because the state grew to
    578580 * big. */
    579 #define VERR_SSM_STATE_GREW_TOO_BIG             (-1855)
     581#define VERR_SSM_STATE_GREW_TOO_BIG             (-1856)
    580582/** Giving up a live snapshot attempt because we're low on disk space.  */
    581 #define VERR_SSM_LOW_ON_DISK_SPACE              (-1856)
     583#define VERR_SSM_LOW_ON_DISK_SPACE              (-1857)
    582584/** The operation was cancelled. */
    583 #define VERR_SSM_CANCELLED                      (-1857)
     585#define VERR_SSM_CANCELLED                      (-1858)
    584586/** Nothing that can be cancelled.  */
    585 #define VERR_SSM_NO_PENDING_OPERATION           (-1858)
     587#define VERR_SSM_NO_PENDING_OPERATION           (-1859)
    586588/** The operation has already been cancelled. */
    587 #define VERR_SSM_ALREADY_CANCELLED              (-1859)
     589#define VERR_SSM_ALREADY_CANCELLED              (-1860)
    588590/** The machine was powered off while saving. */
    589 #define VERR_SSM_LIVE_POWERED_OFF               (-1860)
     591#define VERR_SSM_LIVE_POWERED_OFF               (-1861)
    590592/** The live snapshot/migration operation was aborted because of a guru
    591593 *  meditation. */
    592 #define VERR_SSM_LIVE_GURU_MEDITATION           (-1861)
     594#define VERR_SSM_LIVE_GURU_MEDITATION           (-1862)
    593595/** The live snapshot/migration operation was aborted because of a fatal runtime
    594596 *  error. */
    595 #define VERR_SSM_LIVE_FATAL_ERROR               (-1862)
     597#define VERR_SSM_LIVE_FATAL_ERROR               (-1863)
    596598/** The VM was suspended while saving, don't resume execution. */
    597 #define VINF_SSM_LIVE_SUSPENDED                  1863
     599#define VINF_SSM_LIVE_SUSPENDED                  1864
    598600/** @} */
    599601
  • trunk/include/VBox/err.mac

    r23151 r23714  
    193193%define VERR_SSM_GCPTR_OVERFLOW    (-1850)
    194194%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
    206208%define VERR_VM_ATRESET_NOT_FOUND    (-1900)
    207209%define VERR_VM_REQUEST_INVALID_TYPE    (-1901)
  • trunk/src/VBox/VMM/SSM.cpp

    r23709 r23714  
    899899{
    900900    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;
    903909}
    904910
     
    44084414            pSSM->rc = rc;
    44094415        else
     4416        {
     4417            if (rc == VINF_SSM_DONT_CALL_AGAIN)
     4418                pUnit->fDoneLive = true;
    44104419            rc = ssmR3DataFlushBuffer(pSSM); /* will return SSMHANDLE::rc if it is set */
     4420        }
    44114421        if (RT_FAILURE(rc))
    44124422        {
Note: See TracChangeset for help on using the changeset viewer.

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