VirtualBox

Changeset 24254 in vbox


Ignore:
Timestamp:
Nov 2, 2009 2:01:29 PM (15 years ago)
Author:
vboxsync
Message:

Long mode check update

File:
1 edited

Legend:

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

    r24243 r24254  
    11171117                    else
    11181118                    {
     1119                        uint32_t u32Eax, u32Dummy;
     1120
    11191121                        /* TPR patching needs access to the MSR_K8_LSTAR msr. */
    1120                         if (!CPUMGetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_LONG_MODE))
     1122                        ASMCpuId(0x80000000, &u32Eax, &u32Dummy, &u32Dummy, &u32Dummy);
     1123                        if (    u32Eax < 0x80000001
     1124                            ||  !(ASMCpuId_EDX(0x80000001) & X86_CPUID_AMD_FEATURE_EDX_LONG_MODE))
    11211125                        {
    11221126                            pVM->hwaccm.s.fTRPPatchingAllowed = false;
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