VirtualBox

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


Ignore:
Timestamp:
Oct 7, 2009 6:50:20 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53278
Message:

Main: More live migration code.

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

Legend:

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

    r23599 r23606  
    3939}
    4040
     41int
     42Console::migrationLoadRemote(PVM pVM, IMachine *pMachine)
     43{
     44    /*
     45     * Get the config.
     46     */
     47    ULONG uPort;
     48    HRESULT hrc = pMachine->COMGETTER(LiveMigrationPort)(&uPort);
     49    if (FAILED(hrc))
     50        return VERR_GENERAL_FAILURE;
    4151
     52    Bstr bstrPassword;
     53    hrc = pMachine->COMGETTER(LiveMigrationPassword)(bstrPassword.asOutParam());
     54    if (FAILED(hrc))
     55        return VERR_GENERAL_FAILURE;
     56    Utf8Str strPassword(bstrPassword);
     57
     58    /*
     59     * Create the TCP server.
     60     */
     61    //RTTcpServerCreateEx(NULL,
     62
     63
     64    return VERR_NOT_IMPLEMENTED;
     65}
     66
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r23598 r23606  
    227227          mSetVMErrorCallback(NULL),
    228228          mConfigConstructor(NULL),
    229           mStartPaused(false)
     229          mStartPaused(false),
     230          mLiveMigrationTarget(FALSE)
    230231    {}
    231232
     
    235236    Console::SharedFolderDataMap mSharedFolders;
    236237    bool mStartPaused;
     238    BOOL mLiveMigrationTarget;
    237239
    238240    typedef std::list< ComPtr<IMedium> > HardDiskList;
     
    46224624        task->mSavedStateFile = savedStateFile;
    46234625
     4626    /* test and clear the LiveMigrationTarget property  */
     4627    rc = mMachine->COMGETTER(LiveMigrationTarget)(&task->mLiveMigrationTarget);
     4628    CheckComRCReturnRC(rc);
     4629    if (task->mLiveMigrationTarget)
     4630    {
     4631        rc = mMachine->COMSETTER(LiveMigrationTarget)(FALSE);
     4632        CheckComRCReturnRC(rc);
     4633    }
     4634
    46244635    /* Reset differencing hard disks for which autoReset is true */
    46254636    {
     
    67156726                    }
    67166727                }
     6728                else if (task->mLiveMigrationTarget)
     6729                    /* -> ConsoleImpl-LiveMigration.cpp */
     6730                    vrc = console->migrationLoadRemote(pVM, pMachine);
    67176731                else if (task->mStartPaused)
    67186732                    /* done */
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r23599 r23606  
    512512#endif
    513513
     514    /** @name Live migration support
     515     * @{ */
     516    int migrationLoadRemote(PVM pVM, IMachine *pMachine);
     517    /** @} */
     518
    514519    bool mSavedStateDataLoaded : 1;
    515520
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