VirtualBox

Changeset 20079 in vbox for trunk


Ignore:
Timestamp:
May 27, 2009 12:35:00 PM (16 years ago)
Author:
vboxsync
Message:

Deal with locking later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r20075 r20079  
    28392839    Assert(RT_ALIGN_Z(cb, PAGE_SIZE) == cb);
    28402840    AssertMsg(fFlags == REM_NOTIFY_PHYS_RAM_FLAGS_RAM || fFlags == REM_NOTIFY_PHYS_RAM_FLAGS_MMIO2, ("#x\n", fFlags));
     2841#ifdef VBOX_WITH_REM_LOCKING
    28412842    Assert(!PGMIsLockOwner(pVM));
    2842 
     2843    EMR3RemLock(pVM);
     2844#endif
    28432845    /*
    28442846     * Base ram? Update GCPhysLastRam.
     
    28622864    Assert(pVM->rem.s.fIgnoreAll);
    28632865    pVM->rem.s.fIgnoreAll = false;
     2866#ifdef VBOX_WITH_REM_LOCKING
    28642867    EMR3RemUnlock(pVM);
     2868#endif
    28652869}
    28662870
     
    28892893    Assert(RT_ALIGN_Z(cb, PAGE_SIZE) == cb);
    28902894
     2895#ifdef VBOX_WITH_REM_LOCKING
    28912896    EMR3RemLock(pVM);
     2897#endif
    28922898    /*
    28932899     * Register the rom.
     
    29002906    Assert(pVM->rem.s.fIgnoreAll);
    29012907    pVM->rem.s.fIgnoreAll = false;
     2908#ifdef VBOX_WITH_REM_LOCKING
    29022909    EMR3RemUnlock(pVM);
     2910#endif
    29032911}
    29042912
     
    29232931    Assert(RT_ALIGN_Z(cb, PAGE_SIZE) == cb);
    29242932
     2933#ifdef VBOX_WITH_REM_LOCKING
    29252934    EMR3RemLock(pVM);
    2926 
     2935#endif
    29272936    /*
    29282937     * Unassigning the memory.
     
    29352944    Assert(pVM->rem.s.fIgnoreAll);
    29362945    pVM->rem.s.fIgnoreAll = false;
     2946#ifdef VBOX_WITH_REM_LOCKING
    29372947    EMR3RemUnlock(pVM);
     2948#endif
    29382949}
    29392950
     
    29592970    Assert(RT_ALIGN_T(cb, PAGE_SIZE, RTGCPHYS) == cb);
    29602971
     2972#ifdef VBOX_WITH_REM_LOCKING
    29612973    EMR3RemLock(pVM);
     2974#endif
    29622975    if (pVM->rem.s.cHandlerNotifications)
    29632976        REMR3ReplayHandlerNotifications(pVM);
     
    29732986    Assert(pVM->rem.s.fIgnoreAll);
    29742987    pVM->rem.s.fIgnoreAll = false;
     2988#ifdef VBOX_WITH_REM_LOCKING
    29752989    EMR3RemUnlock(pVM);
     2990#endif
    29762991}
    29772992
     
    29933008    VM_ASSERT_EMT(pVM);
    29943009
     3010#ifdef VBOX_WITH_REM_LOCKING
    29953011    EMR3RemLock(pVM);
    2996 
     3012#endif
    29973013    if (pVM->rem.s.cHandlerNotifications)
    29983014        REMR3ReplayHandlerNotifications(pVM);
     
    30213037    Assert(pVM->rem.s.fIgnoreAll);
    30223038    pVM->rem.s.fIgnoreAll = false;
     3039#ifdef VBOX_WITH_REM_LOCKING
    30233040    EMR3RemUnlock(pVM);
     3041#endif
    30243042}
    30253043
     
    30433061    AssertReleaseMsg(enmType != PGMPHYSHANDLERTYPE_MMIO, ("enmType=%d\n", enmType));
    30443062
     3063#ifdef VBOX_WITH_REM_LOCKING
    30453064    EMR3RemLock(pVM);
    3046 
     3065#endif
    30473066    if (pVM->rem.s.cHandlerNotifications)
    30483067        REMR3ReplayHandlerNotifications(pVM);
     
    30763095        pVM->rem.s.fIgnoreAll = false;
    30773096    }
     3097#ifdef VBOX_WITH_REM_LOCKING
    30783098    EMR3RemUnlock(pVM);
     3099#endif
    30793100}
    30803101
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