- Timestamp:
- Mar 8, 2010 2:19:31 PM (15 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/HWACCM.cpp
r27099 r27167 324 324 325 325 pVM->hwaccm.s.fNestedPaging = false; 326 pVM->hwaccm.s.fLargePages = false; 326 327 327 328 /* Disabled by default. */ … … 335 336 /* Nested paging: disabled by default. */ 336 337 rc = CFGMR3QueryBoolDef(pHWVirtExt, "EnableNestedPaging", &pVM->hwaccm.s.fAllowNestedPaging, false); 338 AssertRC(rc); 339 340 /* Large pages: disabled by default. */ 341 rc = CFGMR3QueryBoolDef(pHWVirtExt, "EnableLargePages", &pVM->hwaccm.s.fLargePages, false); 337 342 AssertRC(rc); 338 343 … … 1158 1163 LogRel(("HWACCM: Unrestricted guest execution enabled!\n")); 1159 1164 1160 #ifdef DEBUG_sandervl 1161 /* Use large (2 MB) pages for our EPT PDEs where possible. */ 1162 PGMSetLargePageUsage(pVM, true); 1165 #if HC_ARCH_BITS == 64 1166 if (pVM->hwaccm.s.fLargePages) 1167 { 1168 /* Use large (2 MB) pages for our EPT PDEs where possible. */ 1169 PGMSetLargePageUsage(pVM, true); 1170 LogRel(("HWACCM: Large page support enabled!\n")); 1171 } 1163 1172 #endif 1164 1173 } … … 1281 1290 if (pVM->hwaccm.s.fNestedPaging) 1282 1291 { 1283 #ifdef DEBUG_sandervl 1284 /* Use large (2 MB) pages for our EPT PDEs where possible. */ 1285 PGMSetLargePageUsage(pVM, true); 1292 #if HC_ARCH_BITS == 64 1293 if (pVM->hwaccm.s.fLargePages) 1294 { 1295 /* Use large (2 MB) pages for our EPT PDEs where possible. */ 1296 PGMSetLargePageUsage(pVM, true); 1297 LogRel(("HWACCM: Large page support enabled!\n")); 1298 } 1286 1299 #endif 1287 1300 LogRel(("HWACCM: Enabled nested paging\n")); -
trunk/src/VBox/VMM/HWACCMInternal.h
r26491 r27167 260 260 bool fAllowNestedPaging; 261 261 262 /** Set if large pages are enabled (requires nested paging). */ 263 bool fLargePages; 264 262 265 /** Set if we can support 64-bit guests or not. */ 263 266 bool fAllow64BitGuests; … … 274 277 /** Set when TPR patching is active. */ 275 278 bool fTPRPatchingActive; 276 bool u8Alignment[ 7];279 bool u8Alignment[6]; 277 280 278 281 /** And mask for copying register contents. */
Note:
See TracChangeset
for help on using the changeset viewer.