VirtualBox

Changeset 87554 in vbox


Ignore:
Timestamp:
Feb 3, 2021 10:44:16 AM (4 years ago)
Author:
vboxsync
Message:

VMM/HM: There should be no restriction on NX for PAE guests now.

File:
1 edited

Legend:

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

    r87550 r87554  
    16761676        CPUMR3SetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE);
    16771677        CPUMR3SetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_LONG_MODE);
    1678         CPUMR3SetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_SYSCALL);            /* 64 bits only on Intel CPUs */
     1678        CPUMR3SetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_SYSCALL);            /* (Long mode only on Intel CPUs.) */
    16791679        CPUMR3SetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_LAHF);
    16801680        CPUMR3SetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NX);
    16811681    }
    1682     /* Turn on NXE if PAE has been enabled *and* the host has turned on NXE
    1683        (we reuse the host EFER in the switcher). */
    1684     /** @todo this needs to be fixed properly!! */
     1682    /* Given that we're on a long mode host, we can simply enable NX for PAE capable guests. */
    16851683    else if (CPUMR3GetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE))
    1686     {
    1687         if (pVM->hm.s.vmx.u64HostMsrEfer & MSR_K6_EFER_NXE)
    1688             CPUMR3SetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NX);
    1689         else
    1690             LogRel(("HM: NX not enabled on the host, unavailable to PAE guest\n"));
    1691     }
     1684        CPUMR3SetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NX);
    16921685
    16931686    /*
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