VirtualBox

Changeset 24362 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 5, 2009 1:36:14 AM (15 years ago)
Author:
vboxsync
Message:

ConsoleImpl.cpp: vmstate callback bits of teleporting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r24353 r24362  
    25712571    {
    25722572        delete pTask;
    2573     }
    2574 
    2575     LogFlowThisFunc(("rc=%08X\n", rc));
     2573        NOREF(rc);
     2574    }
     2575
     2576    LogFlowThisFunc(("rc=%Rhrc\n", rc));
    25762577    LogFlowThisFuncLeave();
    25772578    return rc;
     
    56705671        case VMSTATE_SUSPENDED:
    56715672        {
    5672             /** @todo Live Migration: state/live VMSTATE_SUSPENDING_LS. */
    56735673            if (aOldState == VMSTATE_SUSPENDING)
    56745674            {
     
    56825682                that->setMachineState(MachineState_Paused);
    56835683            }
     5684            break;
     5685        }
     5686
     5687        case VMSTATE_SUSPENDED_LS:
     5688        case VMSTATE_SUSPENDED_EXT_LS:
     5689        {
     5690            AutoWriteLock alock(that);
     5691            if (that->mVMStateChangeCallbackDisabled)
     5692                break;
     5693            if (that->mMachineState == MachineState_Teleporting)
     5694                that->setMachineState(MachineState_TeleportingPausedVM);
     5695            else if (that->mMachineState == MachineState_LiveSnapshotting)
     5696                that->setMachineState(MachineState_Saving);
     5697            else
     5698                AssertMsgFailed(("%s/%s -> %s\n", Global::stringifyMachineState(that->mMachineState), VMR3GetStateName(aOldState),  VMR3GetStateName(aState) ));
    56845699            break;
    56855700        }
     
    57105725            break;
    57115726        }
     5727
     5728        case VMSTATE_RUNNING_LS:
     5729            AssertMsg(   that->mMachineState == MachineState_LiveSnapshotting
     5730                      || that->mMachineState == MachineState_Teleporting,
     5731                      ("%s/%s -> %s\n", Global::stringifyMachineState(that->mMachineState), VMR3GetStateName(aOldState),  VMR3GetStateName(aState) ));
     5732            break;
    57125733
    57135734        case VMSTATE_FATAL_ERROR:
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