VirtualBox

Changeset 49849 in vbox


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.

Location:
trunk
Files:
2 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
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r49549 r49849  
    27982798VMMDECL(bool) CPUMIsGuestInPAEMode(PVMCPU pVCpu)
    27992799{
     2800    /* Intel mentions EFER.LMA and EFER.LME in different parts of their spec. We shall use EFER.LMA rather
     2801       than EFER.LME as it reflects if the CPU has entered paging with EFER.LME set.  */
    28002802    return (pVCpu->cpum.s.Guest.cr4 & X86_CR4_PAE)
    28012803        && (pVCpu->cpum.s.Guest.cr0 & X86_CR0_PG)
    2802         && !(pVCpu->cpum.s.Guest.msrEFER & MSR_K6_EFER_LME);
     2804        && !(pVCpu->cpum.s.Guest.msrEFER & MSR_K6_EFER_LMA);
    28032805}
    28042806
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