VirtualBox

Changeset 31067 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Jul 23, 2010 2:50:12 PM (14 years ago)
Author:
vboxsync
Message:

PGM: A couple of simplifications and optimizations. -assertions

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

Legend:

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

    r31066 r31067  
    628628    }
    629629
    630     Assert(HWACCMIsNestedPagingActive(pVM) == pVM->pgm.s.fNestedPaging);
    631630    if (!pVM->pgm.s.fNestedPaging)
    632631    {
     
    944943# endif
    945944
    946         Assert(HWACCMIsNestedPagingActive(pVM) == pVM->pgm.s.fNestedPaging);
    947945        if (pVM->pgm.s.fNestedPaging || !CPUMIsGuestPagingEnabled(pVCpu))
    948946        {
     
    10651063    const unsigned iPml4         = (GCPtr >> X86_PML4_SHIFT) & X86_PML4_MASK;
    10661064    PX86PML4E      pPml4e        = pgmShwGetLongModePML4EPtr(pPGM, iPml4);
    1067     Assert(HWACCMIsNestedPagingActive(pVM) == pVM->pgm.s.fNestedPaging);
    10681065    bool           fNestedPagingOrNoGstPaging = pVM->pgm.s.fNestedPaging || !CPUMIsGuestPagingEnabled(pVCpu);
    10691066    PPGMPOOLPAGE   pShwPage;
     
    12201217    int            rc;
    12211218
    1222     Assert(HWACCMIsNestedPagingActive(pVM) == pVM->pgm.s.fNestedPaging);
    12231219    Assert(pVM->pgm.s.fNestedPaging);
    12241220    Assert(PGMIsLockOwner(pVM));
     
    18381834
    18391835    /* We assume we're only called in nested paging mode. */
    1840     Assert(HWACCMIsNestedPagingActive(pVM) == pVM->pgm.s.fNestedPaging);
    18411836    Assert(pVM->pgm.s.fNestedPaging || pVCpu->pgm.s.enmShadowMode == PGMMODE_EPT);
    18421837    Assert(pVM->pgm.s.fMappingsDisabled);
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r31066 r31067  
    906906                        RTGCPHYS GCPhys2;
    907907                        uint64_t fPageGst;
    908                         Assert(HWACCMIsNestedPagingActive(pVM) == pVM->pgm.s.fNestedPaging);
    909908                        if (!pVM->pgm.s.fNestedPaging)
    910909                        {
     
    20802079    if (PdeDst.n.u1Size)
    20812080    {
    2082         Assert(HWACCMIsNestedPagingActive(pVM) == pVM->pgm.s.fNestedPaging);
    20832081        Assert(pVM->pgm.s.fNestedPaging);
    20842082        Log(("CPU%d: SyncPage: Pde (big:%RX64) at %RGv changed behind our back!\n", pVCpu->idCpu, PdeDst.u, GCPtrPage));
     
    34613459    LogFlow(("VerifyAccessSyncPage: GCPtrPage=%RGv fPage=%#x uErr=%#x\n", GCPtrPage, fPage, uErr));
    34623460
    3463     Assert(HWACCMIsNestedPagingActive(pVM) == pVM->pgm.s.fNestedPaging);
    34643461    Assert(!pVM->pgm.s.fNestedPaging);
    34653462#if   (   PGM_GST_TYPE == PGM_TYPE_32BIT \
     
    46544651           && PGM_GST_TYPE != PGM_TYPE_PROT))
    46554652
    4656     Assert(HWACCMIsNestedPagingActive(pVM) == pVM->pgm.s.fNestedPaging);
    46574653    Assert(!pVM->pgm.s.fNestedPaging);
    46584654
     
    48024798
    48034799#  if PGM_GST_TYPE != PGM_TYPE_REAL
    4804     Assert(HWACCMIsNestedPagingActive(pVM) == pVM->pgm.s.fNestedPaging);
    48054800    Assert(!pVM->pgm.s.fNestedPaging);
    48064801#  endif
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