VirtualBox

Changeset 20759 in vbox


Ignore:
Timestamp:
Jun 22, 2009 10:14:16 AM (15 years ago)
Author:
vboxsync
Message:

More locking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMBth.h

    r20374 r20759  
    143143
    144144    Assert(!HWACCMIsNestedPagingActive(pVM));
     145
     146    pgmLock(pVM);
    145147    /* Note: we only really need shadow paging in real and protected mode for VT-x and AMD-V (excluding nested paging/EPT modes),
    146148     *       but any calls to GC need a proper shadow page setup as well.
     
    175177        Log(("Bth-Enter: PGM pool flushed -> signal sync cr3\n"));
    176178        Assert(VMCPU_FF_ISSET(pVCpu, VMCPU_FF_PGM_SYNC_CR3));
     179        pgmUnlock(pVM);
    177180        return VINF_PGM_SYNC_CR3;
    178181    }
     
    189192
    190193    /* Apply all hypervisor mappings to the new CR3. */
    191     return pgmMapActivateCR3(pVM, pVCpu->pgm.s.CTX_SUFF(pShwPageCR3));
     194    rc = pgmMapActivateCR3(pVM, pVCpu->pgm.s.CTX_SUFF(pShwPageCR3));
     195    pgmUnlock(pVM);
     196    return rc;
    192197#else
    193198    return VINF_SUCCESS;
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