VirtualBox

Changeset 49849 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Dec 9, 2013 4:51:05 PM (11 years ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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