VirtualBox

Changeset 19441 in vbox


Ignore:
Timestamp:
May 6, 2009 3:27:39 PM (16 years ago)
Author:
vboxsync
Message:

Moved VCPU check up

File:
1 edited

Legend:

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

    r19435 r19441  
    12721272    LogFlow(("vmR3Resume: pVM=%p\n", pVM));
    12731273
    1274     /*
    1275      * Validate input.
    1276      */
    1277     if (pVM->enmVMState != VMSTATE_SUSPENDED)
    1278     {
    1279         AssertMsgFailed(("Invalid VM state %d\n", pVM->enmVMState));
    1280         return VERR_VM_INVALID_VM_STATE;
    1281     }
    1282 
    12831274    PVMCPU pVCpu = VMMGetCpu(pVM);
    12841275    /* Only VCPU 0 does the actual work (*before* the others wake up). */
    12851276    if (pVCpu->idCpu != 0)
    12861277        return VINF_EM_RESUME;
     1278
     1279    /*
     1280     * Validate input.
     1281     */
     1282    if (pVM->enmVMState != VMSTATE_SUSPENDED)
     1283    {
     1284        AssertMsgFailed(("Invalid VM state %d\n", pVM->enmVMState));
     1285        return VERR_VM_INVALID_VM_STATE;
     1286    }
    12871287
    12881288    /*
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