VirtualBox

Changeset 56551 in vbox


Ignore:
Timestamp:
Jun 19, 2015 9:32:20 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101175
Message:

Main/src-client: Don't resume a VM on host-resume unless it was previously paused due to a host-suspend.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r56470 r56551  
    62476247             * to assert on us, hence check for the VM state here and bail if it's already in the 'running' state.
    62486248             * See @bugref{3495}.
     6249             *
     6250             * Also, don't resume the VM unless it was paused previously due to a host-suspend operation.
     6251             * See @bugref{7836}.
    62496252             */
    62506253            enmReason = VMRESUMEREASON_HOST_RESUME;
    6251             if (VMR3GetStateU(ptrVM.rawUVM()) == VMSTATE_RUNNING)
     6254            VMSTATE enmVMState = VMR3GetStateU(ptrVM.rawUVM());
     6255            if (   enmVMState == VMSTATE_RUNNING
     6256                || (   enmVMState == VMSTATE_SUSPENDED
     6257                    && VMR3GetSuspendReason(ptrVM.rawUVM()) != VMSUSPENDREASON_HOST_SUSPEND))
     6258            {
    62526259                return S_OK;
     6260            }
    62536261        }
    62546262        else if (aReason == Reason_Snapshot)
  • trunk/src/VBox/VMM/VMMR3/VMMR3.def

    r56335 r56551  
    343343    VMR3GetStateName
    344344    VMR3GetStateU
     345    VMR3GetSuspendReason
    345346    VMR3GetVM
    346347    VMR3HotPlugCpu
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