VirtualBox

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


Ignore:
Timestamp:
Oct 15, 2009 1:03:09 AM (15 years ago)
Author:
vboxsync
Message:

Main: Allow setting IMachine::LiveMigrationTarget to TRUE when the VM state is Aborted as well as PoweredOff.

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

Legend:

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

    r23769 r23791  
    18791879    AutoWriteLock alock(this);
    18801880
    1881     /* Only allow it to be set to true when PoweredOff.
     1881    /* Only allow it to be set to true when PoweredOff or Aborted.
    18821882       (Clearing it is always permitted.) */
    18831883    if (    aEnabled
    18841884        &&  mData->mRegistered
    18851885        &&  (   mType != IsSessionMachine
    1886              || mData->mMachineState > MachineState_PoweredOff)
     1886             || (   mData->mMachineState != MachineState_PoweredOff
     1887                 && mData->mMachineState != MachineState_Aborted)
     1888            )
    18871889       )
    18881890        return setError(VBOX_E_INVALID_VM_STATE,
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r23762 r23791  
    45324532        When set to @a true, the virtual machine becomes a live migration
    45334533        target.  This can only set to @a true when the VM is in the @a
    4534         PoweredOff state.
     4534        PoweredOff or @a Aborted state.
    45354535
    45364536        This property is automatically set to @a false when the VM is powered
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