VirtualBox

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


Ignore:
Timestamp:
May 6, 2009 1:13:31 PM (16 years ago)
Author:
vboxsync
Message:

Moved vcpu 0 check up

File:
1 edited

Legend:

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

    r19427 r19428  
    10951095    LogFlow(("vmR3PowerOn: pVM=%p\n", pVM));
    10961096
    1097     /*
    1098      * Validate input.
    1099      */
    1100     if (pVM->enmVMState != VMSTATE_CREATED)
    1101     {
    1102         AssertMsgFailed(("Invalid VM state %d\n", pVM->enmVMState));
    1103         return VERR_VM_INVALID_VM_STATE;
    1104     }
    1105 
    11061097    PVMCPU pVCpu = VMMGetCpu(pVM);
    11071098    /* Only VCPU 0 does the actual work. */
    11081099    if (pVCpu->idCpu != 0)
    11091100        return VINF_SUCCESS;
     1101
     1102    /*
     1103     * Validate input.
     1104     */
     1105    if (pVM->enmVMState != VMSTATE_CREATED)
     1106    {
     1107        AssertMsgFailed(("Invalid VM state %d\n", pVM->enmVMState));
     1108        return VERR_VM_INVALID_VM_STATE;
     1109    }
    11101110
    11111111    /*
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