Changeset 87554 in vbox
- Timestamp:
- Feb 3, 2021 10:44:16 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/HM.cpp
r87550 r87554 1676 1676 CPUMR3SetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE); 1677 1677 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.) */ 1679 1679 CPUMR3SetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_LAHF); 1680 1680 CPUMR3SetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NX); 1681 1681 } 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. */ 1685 1683 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); 1692 1685 1693 1686 /*
Note:
See TracChangeset
for help on using the changeset viewer.