VirtualBox

Changeset 48601 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Sep 20, 2013 2:37:39 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HM: Log correction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r48597 r48601  
    12721272        CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_LAHF);
    12731273        CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NX);
    1274 #if 0 /** @todo r=bird: This ain't making any sense whatsoever. */
    1275 #if RT_ARCH_X86
    1276         if (   !CPUMGetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE)
    1277             || !(pVM->hm.s.vmx.u64HostEfer & MSR_K6_EFER_NXE))
    1278             LogRel(("NX is only supported for 64-bit guests!\n"));
    1279 #endif
    1280 #endif
    12811274    }
    12821275    /* Turn on NXE if PAE has been enabled *and* the host has turned on NXE
    12831276       (we reuse the host EFER in the switcher). */
    12841277    /** @todo this needs to be fixed properly!! */
    1285     else if (   CPUMGetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE)
    1286              && (pVM->hm.s.vmx.u64HostEfer & MSR_K6_EFER_NXE))
    1287         CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NX);
    1288     else
    1289         LogRel(("HM: NX not supported by the host.\n"));
     1278    else if (CPUMGetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE))
     1279    {
     1280        if (pVM->hm.s.vmx.u64HostEfer & MSR_K6_EFER_NXE)
     1281            CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NX);
     1282        else
     1283            LogRel(("HM: NX not enabled on the host, unavailable to PAE guest.\n"));
     1284    }
    12901285
    12911286    /*
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