VirtualBox

Changeset 52411 in vbox for trunk/src/VBox/VMM/VMMRZ


Ignore:
Timestamp:
Aug 19, 2014 11:00:46 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95582
Message:

VMM/HMVMXR0: Use unordered atomics for VMMRZCallRing3[Enable|Disable]() and some VT-x nits.

File:
1 edited

Legend:

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

    r51720 r52411  
    134134
    135135    Assert(pVCpu->vmm.s.cCallRing3Disabled < 16);
    136     if (ASMAtomicIncU32(&pVCpu->vmm.s.cCallRing3Disabled) == 1) /** @todo replace with unordered variant (ASMAtomicUoIncU32). */
    137     {                                                           /** @todo See @bugref{6208} comment #36 for impl. diff. */
     136    if (ASMAtomicUoIncU32(&pVCpu->vmm.s.cCallRing3Disabled) == 1)
     137    {
    138138        /** @todo it might make more sense to just disable logging here, then we
    139139         * won't flush away important bits... but that goes both ways really. */
     
    155155
    156156/**
    157  * Counters VMMRZCallRing3Disable and re-enables host calls.
     157 * Counters VMMRZCallRing3Disable() and re-enables host calls.
    158158 *
    159159 * @param   pVCpu               The CPU struct for the calling EMT.
     
    168168
    169169    Assert(pVCpu->vmm.s.cCallRing3Disabled > 0);
    170     if (ASMAtomicDecU32(&pVCpu->vmm.s.cCallRing3Disabled) == 0) /** @todo replace with unordered variant (ASMAtomicUoDecU32). */
     170    if (ASMAtomicUoDecU32(&pVCpu->vmm.s.cCallRing3Disabled) == 0)
    171171    {
    172172#ifdef IN_RC
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette