VirtualBox

Changeset 17146 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 26, 2009 9:23:27 AM (16 years ago)
Author:
vboxsync
Message:

VBOX_WITH_PGMPOOL_PAGING_ONLY: Disable logging during a critical section in MapCR3 (raw mode only).

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r17142 r17146  
    46584658#  ifdef IN_RC
    46594659    /** NOTE: We can't deal with jumps to ring 3 here as we're now in an inconsistent state! */
     4660    VMMGCLogDisable(pVM);
    46604661#  endif
    46614662    /* Mark the page as locked; disallow flushing. */
     
    46984699
    46994700#  ifdef IN_RC
    4700     /** NOTE: Everything safe again. */
     4701    VMMGCLogEnable(pVM);
    47014702#  endif
    47024703
  • trunk/src/VBox/VMM/VMMGC/VMMGC.cpp

    r13816 r17146  
    177177
    178178/**
     179 * Disables the GC logger temporarily
     180 *
     181 * @param   pVM             The VM handle.
     182 */
     183VMMRCDECL(void) VMMGCLogDisable(PVM pVM)
     184{
     185    if (pVM->vmm.s.pRCLoggerRC)
     186        pVM->vmm.s.pRCLoggerRC->fFlags |= RTLOGFLAGS_DISABLED;
     187}
     188
     189
     190/**
     191 * Enables the GC logger again
     192 *
     193 * @param   pVM             The VM handle.
     194 */
     195VMMRCDECL(void) VMMGCLogEnable(PVM pVM)
     196{
     197    if (pVM->vmm.s.pRCLoggerRC)
     198        pVM->vmm.s.pRCLoggerRC->fFlags &= ~RTLOGFLAGS_DISABLED;
     199}
     200
     201
     202/**
    179203 * Switches from guest context to host context.
    180204 *
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