Changeset 15159 in vbox
- Timestamp:
- Dec 9, 2008 1:01:55 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40566
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/hwaccm.h
r14899 r15159 73 73 VMMDECL(int) HWACCMInvalidatePhysPage(PVM pVM, RTGCPHYS GCPhys); 74 74 VMMDECL(bool) HWACCMIsNestedPagingActive(PVM pVM); 75 VMMDECL(PGMMODE) HWACCMGet PagingMode(PVM pVM);75 VMMDECL(PGMMODE) HWACCMGetShwPagingMode(PVM pVM); 76 76 VMMDECL(RTCPUID) HWACCMGetVMCPUId(PVM pVM); 77 77 #else -
trunk/src/VBox/VMM/PGM.cpp
r15151 r15159 3263 3263 /* Override the shadow mode is nested paging is active. */ 3264 3264 if (HWACCMIsNestedPagingActive(pVM)) 3265 enmShadowMode = HWACCMGet PagingMode(pVM);3265 enmShadowMode = HWACCMGetShwPagingMode(pVM); 3266 3266 3267 3267 *penmSwitcher = enmSwitcher; -
trunk/src/VBox/VMM/VMMAll/HWACCMAll.cpp
r13898 r15159 99 99 * @param pVM The VM to operate on. 100 100 */ 101 VMMDECL(PGMMODE) HWACCMGet PagingMode(PVM pVM)101 VMMDECL(PGMMODE) HWACCMGetShwPagingMode(PVM pVM) 102 102 { 103 103 Assert(HWACCMIsNestedPagingActive(pVM)); 104 104 if (pVM->hwaccm.s.svm.fSupported) 105 return PGMMODE_NESTED; 105 { 106 PGMMODE enmShwPagingMode; 107 108 #if HC_ARCH_BITS == 32 109 if (CPUMIsGuestInLongModeEx(pCtx)) 110 enmShwPagingMode = PGMMODE_AMD64_NX; 111 else 112 #endif 113 enmShwPagingMode = PGMGetHostMode(pVM); 114 115 return enmShwPagingMode; 116 } 106 117 Assert(pVM->hwaccm.s.vmx.fSupported); 107 118 return PGMMODE_EPT;
Note:
See TracChangeset
for help on using the changeset viewer.