VirtualBox

Changeset 49849 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Dec 9, 2013 4:51:05 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91200
Message:

VMM: Use EFER.LMA in PAE-paging mode check rather than EFER.LME.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.h

    r49522 r49849  
    289289DECLINLINE(bool)    CPUMIsGuestInPAEModeEx(PCPUMCTX pCtx)
    290290{
     291    /* Intel mentions EFER.LMA and EFER.LME in different parts of their spec. We shall use EFER.LMA rather
     292       than EFER.LME as it reflects if the CPU has entered paging with EFER.LME set.  */
    291293    return (   (pCtx->cr4 & X86_CR4_PAE)
    292294            && CPUMIsGuestPagingEnabledEx(pCtx)
    293             && !(pCtx->msrEFER & MSR_K6_EFER_LME));
     295            && !(pCtx->msrEFER & MSR_K6_EFER_LMA));
    294296}
    295297
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette