Changeset 56583 in vbox
- Timestamp:
- Jun 22, 2015 5:03:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r56582 r56583 6252 6252 if (VMR3GetStateU(ptrVM.rawUVM()) != VMSTATE_SUSPENDED) 6253 6253 { 6254 LogRel(("Ignoring host-resume VM resume request, VM is not currentlysuspended\n"));6254 LogRel(("Ignoring VM resume request, VM is currently not suspended\n")); 6255 6255 return S_OK; 6256 6256 } 6257 6257 if (VMR3GetSuspendReason(ptrVM.rawUVM()) != VMSUSPENDREASON_HOST_SUSPEND) 6258 6258 { 6259 LogRel(("Ignoring host-resumeVM resume request, VM was not suspended due to host-suspend\n"));6259 LogRel(("Ignoring VM resume request, VM was not suspended due to host-suspend\n")); 6260 6260 return S_OK; 6261 6261 } … … 6266 6266 { 6267 6267 /* 6268 * Any other reason to resume the VM is ignoredwhen the VM was suspended due to a host suspend.6268 * Any other reason to resume the VM throws an error when the VM was suspended due to a host suspend. 6269 6269 * See @bugref{7836}. 6270 6270 */ 6271 /** @todo we need to return an error code when trying to resume a VM (using6272 * "Reason_Unspecified") when the VM has been paused due to6273 * host-suspend. */6274 6271 if ( VMR3GetStateU(ptrVM.rawUVM()) == VMSTATE_SUSPENDED 6275 6272 && VMR3GetSuspendReason(ptrVM.rawUVM()) == VMSUSPENDREASON_HOST_SUSPEND) 6276 {6277 LogRel(("Ignoring VM resume request, VM was paused in response to a host-suspend\n"));6278 6273 return setError(VBOX_E_INVALID_VM_STATE, tr("VM is paused due to host power management")); 6279 }6280 6274 6281 6275 enmReason = aReason == Reason_Snapshot ? VMRESUMEREASON_STATE_SAVED : VMRESUMEREASON_USER;
Note:
See TracChangeset
for help on using the changeset viewer.