VirtualBox

Changeset 27789 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Mar 29, 2010 12:57:20 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59443
Message:

VM.cpp: Fixed bug in vmR3LiveDoStep1Cleanup where it didn't pass the right number for cTransitions to vmR3TrySetState.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VM.cpp

    r26653 r27789  
    15131513    NOREF(pVCpu);
    15141514
    1515     int rc = vmR3TrySetState(pVM, "vmR3LiveDoStep1Cleanup", 6,
     1515    int rc = vmR3TrySetState(pVM, "vmR3LiveDoStep1Cleanup", 8,
    15161516                             VMSTATE_OFF,               VMSTATE_OFF_LS,                     /* 1 */
    15171517                             VMSTATE_FATAL_ERROR,       VMSTATE_FATAL_ERROR_LS,             /* 2 */
     
    31843184         */
    31853185        if (cTransitions == 1)
     3186        {
    31863187            LogRel(("%s: %s -> %s failed, because the VM state is actually %s\n",
    31873188                    pszWho, VMR3GetStateName(enmStateOld), VMR3GetStateName(enmStateNew), VMR3GetStateName(enmStateCur)));
     3189            VMSetError(pVM, VERR_VM_INVALID_VM_STATE, RT_SRC_POS,
     3190                       N_("%s failed because the VM state is %s instead of %s"),
     3191                       pszWho, VMR3GetStateName(enmStateCur), VMR3GetStateName(enmStateOld));
     3192            AssertMsgFailed(("%s: %s -> %s failed, because the VM state is actually %s\n",
     3193                             pszWho, VMR3GetStateName(enmStateOld), VMR3GetStateName(enmStateNew), VMR3GetStateName(enmStateCur)));
     3194        }
    31883195        else
    31893196        {
     
    31993206            }
    32003207            LogRel((" failed, because the VM state is actually %s\n", VMR3GetStateName(enmStateCur)));
     3208            VMSetError(pVM, VERR_VM_INVALID_VM_STATE, RT_SRC_POS,
     3209                       N_("%s failed because the current VM state, %s, was not found in the state transition table"),
     3210                       pszWho, VMR3GetStateName(enmStateCur), VMR3GetStateName(enmStateOld));
     3211            AssertMsgFailed(("%s - state=%s, see release log for full details. Check the cTransitions passed us.\n",
     3212                             pszWho, VMR3GetStateName(enmStateCur)));
    32013213        }
    3202 
    3203         VMSetError(pVM, VERR_VM_INVALID_VM_STATE, RT_SRC_POS,
    3204                    N_("%s failed because the VM state is %s instead of %s"),
    3205                    VMR3GetStateName(enmStateCur), VMR3GetStateName(enmStateOld));
    3206         AssertMsgFailed(("%s: %s -> %s failed, state is actually %s\n",
    3207                          pszWho, VMR3GetStateName(enmStateOld), VMR3GetStateName(enmStateNew), VMR3GetStateName(enmStateCur)));
    32083214    }
    32093215
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