VirtualBox

Changeset 18927 in vbox for trunk/src/VBox/VMM/VMEmt.cpp


Ignore:
Timestamp:
Apr 16, 2009 11:41:38 AM (16 years ago)
Author:
vboxsync
Message:

Big step to separate VMM data structures for guest SMP. (pgm, em)

File:
1 edited

Legend:

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

    r18619 r18927  
    183183            &&  pUVM->pVM->enmVMState == VMSTATE_RUNNING)
    184184        {
    185             PVM pVM = pUVM->pVM;
    186             rc = EMR3ExecuteVM(pVM, idCpu);
     185            PVM    pVM   = pUVM->pVM;
     186            PVMCPU pVCpu = &pVM->aCpus[idCpu];
     187
     188            rc = EMR3ExecuteVM(pVM, pVCpu);
    187189            Log(("vmR3EmulationThread: EMR3ExecuteVM() -> rc=%Rrc, enmVMState=%d\n", rc, pVM->enmVMState));
    188             if (   EMGetState(pVM) == EMSTATE_GURU_MEDITATION
     190            if (   EMGetState(pVCpu) == EMSTATE_GURU_MEDITATION
    189191                && pVM->enmVMState == VMSTATE_RUNNING)
    190192                vmR3SetState(pVM, VMSTATE_GURU_MEDITATION);
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