VirtualBox

Changeset 7808 in vbox


Ignore:
Timestamp:
Apr 8, 2008 2:25:58 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29381
Message:

SyncPage: correct NXE bit handling

File:
1 edited

Legend:

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

    r7807 r7808  
    12541254PGM_BTH_DECL(int, SyncPage)(PVM pVM, GSTPDE PdeSrc, RTGCUINTPTR GCPtrPage, unsigned cPages, unsigned uErr)
    12551255{
     1256# if PGM_WITH_NX(PGM_GST_TYPE)
     1257    bool fNoExecuteBitValid = !!(CPUMGetGuestEFER(pVM) & MSR_K6_EFER_NXE);
     1258# endif
    12561259    LogFlow(("SyncPage: GCPtrPage=%VGv cPages=%d uErr=%#x\n", GCPtrPage, cPages, uErr));
    12571260
     
    13031306        &&  (PdeSrc.n.u1User == PdeDst.n.u1User)
    13041307        &&  (PdeSrc.n.u1Write == PdeDst.n.u1Write || !PdeDst.n.u1Write)
    1305 # if PGM_GST_TYPE == PGM_TYPE_PAE
    1306         &&  (PdeSrc.n.u1NoExecute == PdeDst.n.u1NoExecute)
     1308# if PGM_WITH_NX(PGM_GST_TYPE)
     1309        &&  (!fNoExecuteBitValid || PdeSrc.n.u1NoExecute == PdeDst.n.u1NoExecute)
    13071310# endif
    13081311       )
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