VirtualBox

Changeset 19427 in vbox


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

Send power on requests to all VCPUs.

File:
1 edited

Legend:

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

    r19416 r19427  
    10681068
    10691069    /*
    1070      * Request the operation in EMT.
     1070     * Request the operation in EMT (in order as VCPU 0 does all the work)
    10711071     */
    10721072    PVMREQ pReq;
    1073     int rc = VMR3ReqCall(pVM, 0 /* VCPU 0 */, &pReq, RT_INDEFINITE_WAIT, (PFNRT)vmR3PowerOn, 1, pVM);
     1073    int rc = VMR3ReqCall(pVM, VMCPUID_ALL, &pReq, RT_INDEFINITE_WAIT, (PFNRT)vmR3PowerOn, 1, pVM);
    10741074    if (RT_SUCCESS(rc))
    10751075    {
     
    11031103        return VERR_VM_INVALID_VM_STATE;
    11041104    }
     1105
     1106    PVMCPU pVCpu = VMMGetCpu(pVM);
     1107    /* Only VCPU 0 does the actual work. */
     1108    if (pVCpu->idCpu != 0)
     1109        return VINF_SUCCESS;
    11051110
    11061111    /*
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