VirtualBox

Changeset 22784 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Sep 4, 2009 2:25:31 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51969
Message:

VMM,Main,VBoxBFE: Changed VMR3Save and started working on making TakeSnapshot work without pausing the VM first.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

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

    r22624 r22784  
    23862386    MachineState_T lastMachineState = mMachineState;
    23872387
     2388#ifndef VBOX_WITH_LIVE_MIGRATION /** @todo update the API docs. */
    23882389    if (mMachineState == MachineState_Running)
    23892390    {
     
    23912392        CheckComRCReturnRC(rc);
    23922393    }
     2394#endif
    23932395
    23942396    HRESULT rc = S_OK;
    23952397
    2396     bool fTakingSnapshotOnline = (mMachineState == MachineState_Paused);
     2398    bool const fTakingSnapshotOnline = (   mMachineState == MachineState_Running
     2399                                        || mMachineState == MachineState_Paused);
    23972400
    23982401    /*
     
    24502453
    24512454        /*
    2452          *  state file is non-null only when the VM is paused
    2453          *  (i.e. creating a snapshot online)
     2455         *  The state file is non-null only when creating a online or live snapshot.
    24542456         */
    24552457        ComAssertBreak(    (!stateFilePath.isNull() && fTakingSnapshotOnline)
     
    73167318        int vrc = VMR3Save(that->mpVM,
    73177319                           task->mSavedStateFile.c_str(),
     7320                           task->mIsSnapshot /*fContinueAfterwards*/,
    73187321                           Console::stateProgressCallback,
    73197322                           static_cast<VMProgressTask*>(task.get()));
  • trunk/src/VBox/Main/MachineImpl.cpp

    r22779 r22784  
    79277927    AssertReturn(    (    !Global::IsOnlineOrTransient (mData->mMachineState)
    79287928                       || mData->mMachineState == MachineState_Paused
     7929#ifdef VBOX_WITH_LIVE_MIGRATION
     7930                       || mData->mMachineState == MachineState_Running
     7931#endif
    79297932                     )
    79307933                  && mSnapshotData.mLastState == MachineState_Null
     
    79337936                  && mSnapshotData.mCombinedProgress.isNull(), E_FAIL);
    79347937
    7935     bool fTakingSnapshotOnline = (mData->mMachineState == MachineState_Paused);
     7938    bool const fTakingSnapshotOnline = (   mData->mMachineState == MachineState_Running
     7939                                        || mData->mMachineState == MachineState_Paused);
    79367940
    79377941    if (    !fTakingSnapshotOnline
  • trunk/src/VBox/Main/Makefile.kmk

    r22705 r22784  
    216216        $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
    217217        $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \
    218         $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
     218        $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \
     219        $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,)
    219220ifdef VBOX_WITH_USB
    220221 VBoxSVC_DEFS += \
     
    529530        $(if $(VBOX_WITH_SMC),VBOX_WITH_SMC,) \
    530531        $(if $(VBOX_WITH_LPC),VBOX_WITH_LPC,) \
    531         $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,)
     532        $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
     533        $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,)
    532534ifdef VBOX_WITH_USB
    533535VBoxC_DEFS += \
Note: See TracChangeset for help on using the changeset viewer.

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