VirtualBox

Changeset 17289 in vbox for trunk/src


Ignore:
Timestamp:
Mar 3, 2009 2:57:16 PM (16 years ago)
Author:
vboxsync
Message:

PGMAllBth.h: Fixed wrong HCPhys mask in EPT mode (EPT_PTE_PG_MASK=X86_PTE_PAE_PG_MASK_FULL, while we must use X86_PTE_PAE_PG_MASK against PGMPAGE::HCPhys, which omits bits 48 thru 51). Could in theory cause these bits to be wrong, although I'm not so sure intel cares.

File:
1 edited

Legend:

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

    r17288 r17289  
    14791479                {
    14801480#if PGM_SHW_TYPE == PGM_TYPE_EPT
    1481                     PteDst.u             = (HCPhys & EPT_PTE_PG_MASK);
     1481                    PteDst.u             = PGM_PAGE_GET_HCPHYS(pPage);
    14821482                    PteDst.n.u1Present   = 1;
    14831483                    PteDst.n.u1Execute   = 1;
     
    15271527                    STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,DirtyPageSkipped));
    15281528#if PGM_SHW_TYPE == PGM_TYPE_EPT
    1529                     PteDst.u             = (HCPhys & EPT_PTE_PG_MASK);
     1529                    PteDst.u             = PGM_PAGE_GET_HCPHYS(pPage);
    15301530                    PteDst.n.u1Present   = 1;
    15311531                    PteDst.n.u1Write     = 1;
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