VirtualBox

Ignore:
Timestamp:
Mar 6, 2009 3:59:52 PM (16 years ago)
Author:
vboxsync
Message:

Cleaned up nested paging init and removed obsolete structure members.

File:
1 edited

Legend:

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

    r17438 r17483  
    973973# else /* PGM_SHW_TYPE == PGM_TYPE_AMD64 */
    974974    /* PML4 */
     975#  ifndef VBOX_WITH_PGMPOOL_PAGING_ONLY
    975976    AssertReturn(pVM->pgm.s.pShwRootR3, VERR_INTERNAL_ERROR);
     977#  endif
    976978
    977979    const unsigned  iPml4     = (GCPtrPage >> X86_PML4_SHIFT) & X86_PML4_MASK;
     
    47744776    pVM->pgm.s.pShwPageCR3RC = MMHyperCCToRC(pVM, pVM->pgm.s.CTX_SUFF(pShwPageCR3));
    47754777#  endif
    4776     pVM->pgm.s.pShwRootR3    = (R3PTRTYPE(void *))pVM->pgm.s.CTX_SUFF(pShwPageCR3)->pvPageR3;
    4777     Assert(pVM->pgm.s.pShwRootR3);
    4778 #  ifndef VBOX_WITH_2X_4GB_ADDR_SPACE
    4779     pVM->pgm.s.pShwRootR0    = (R0PTRTYPE(void *))PGMPOOL_PAGE_2_PTR(pPool->CTX_SUFF(pVM), pVM->pgm.s.CTX_SUFF(pShwPageCR3));
    4780 #  endif
    4781     pVM->pgm.s.HCPhysShwCR3  = pVM->pgm.s.CTX_SUFF(pShwPageCR3)->Core.Key;
    47824778
    47834779#  ifndef PGM_WITHOUT_MAPPINGS
     
    48994895# endif
    49004896
    4901     pVM->pgm.s.pShwRootR3 = 0;
    4902 #  ifndef VBOX_WITH_2X_4GB_ADDR_SPACE
    4903     pVM->pgm.s.pShwRootR0 = 0;
    4904 #  endif
    4905     pVM->pgm.s.HCPhysShwCR3 = 0;
    49064897    if (pVM->pgm.s.CTX_SUFF(pShwPageCR3))
    49074898    {
    49084899        PPGMPOOL pPool = pVM->pgm.s.CTX_SUFF(pPool);
     4900
     4901        Assert(pVM->pgm.s.iShwUser != PGMPOOL_IDX_NESTED_ROOT);
    49094902
    49104903        /* Mark the page as unlocked; allow flushing again. */
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