VirtualBox

Changeset 30148 in vbox for trunk/src


Ignore:
Timestamp:
Jun 10, 2010 12:17:16 PM (15 years ago)
Author:
vboxsync
Message:

Too early to check guest cpuid features; use host

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMSwitcher.cpp

    r30145 r30148  
    3535#include <iprt/alloc.h>
    3636#include <iprt/asm.h>
     37#include <iprt/asm-amd64-x86.h>
    3738#include <iprt/string.h>
    3839#include <iprt/ctype.h>
     
    533534            {
    534535                uint32_t u32OrMask = MSR_K6_EFER_LME | MSR_K6_EFER_SCE;
    535                 if (CPUMGetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NXE))
     536                if (!!(ASMCpuId_EDX(0x80000001) & X86_CPUID_AMD_FEATURE_EDX_NX))
    536537                    u32OrMask |= MSR_K6_EFER_NXE;
    537538
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