VirtualBox

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


Ignore:
Timestamp:
Sep 18, 2009 8:58:30 PM (15 years ago)
Author:
vboxsync
Message:

VMM: Extended VMMR3EmtRendezvous with TYPE_ASCENDING, TYPE_DESCENDING and STOP_ON_ERROR for use with VM state changes. The return type of the callback was changed so that the callback can feed scheduling info to EM.

File:
1 edited

Legend:

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

    r23009 r23145  
    158158                break;
    159159            }
     160
    160161            if (VM_FF_ISPENDING(pVM, VM_FF_EMT_RENDEZVOUS))
    161                 VMMR3EmtRendezvousFF(pVM, &pVM->aCpus[idCpu]);
    162             if (pUVM->vm.s.pReqs)
     162            {
     163                rc = VMMR3EmtRendezvousFF(pVM, &pVM->aCpus[idCpu]);
     164                Log(("vmR3EmulationThread: Rendezvous rc=%Rrc, VM state %d -> %d\n", rc, enmBefore, pVM->enmVMState));
     165            }
     166            else if (pUVM->vm.s.pReqs)
    163167            {
    164168                /*
     
    10991103 * Rendezvous callback that will be called once.
    11001104 *
    1101  * @returns VBox status code.
     1105 * @returns VBox strict status code.
    11021106 * @param   pVM                 VM handle.
    11031107 * @param   pVCpu               The VMCPU handle for the calling EMT.
    11041108 * @param   pvUser              The new g_aHaltMethods index.
    11051109 */
    1106 static DECLCALLBACK(int) vmR3SetHaltMethodCallback(PVM pVM, PVMCPU pVCpu, void *pvUser)
     1110static DECLCALLBACK(VBOXSTRICTRC) vmR3SetHaltMethodCallback(PVM pVM, PVMCPU pVCpu, void *pvUser)
    11071111{
    11081112    PUVM        pUVM = pVM->pUVM;
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