VirtualBox

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


Ignore:
Timestamp:
Jun 8, 2011 4:13:49 PM (14 years ago)
Author:
vboxsync
Message:

HWACCMAll.cpp: Added todo for optimziating the poking a little bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/HWACCMAll.cpp

    r37387 r37389  
    134134            STAM_PROFILE_ADV_START(&pVCpu->hwaccm.s.StatSpinPokeFailed, z);
    135135
     136/** @todo If more than one CPU is going to be poked, we could optimize this
     137 *        operation by poking them first and wait afterwards.  Would require
     138 *        recording who to poke and their current cWorldSwitchExits values,
     139 *        that's something not suitable for stack... So, pVCpu->hm.s.something
     140 *        then. */
    136141        /* Spin until the VCPU has switched back (poking is async). */
    137142        while (   ASMAtomicUoReadBool(&pVCpu->hwaccm.s.fCheckedTLBFlush)
     
    167172        RTCPUID idHostCpu = pVCpu->hwaccm.s.idEnteredCpu;
    168173        if (idHostCpu != NIL_RTCPUID)
    169         {
    170174            hmR0PokeCpu(pVCpu, idHostCpu);
    171         }
    172175#else
    173176        VMR3NotifyCpuFFU(pVCpu->pUVCpu, VMNOTIFYFF_FLAGS_POKE);
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