Changeset 27166 in vbox
- Timestamp:
- Mar 8, 2010 2:16:00 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r26830 r27166 561 561 fHardwareVirtExclusive, 562 562 fNestedPaging, 563 fLargePages, 563 564 fVPID, 564 565 fSyntheticCpu, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r27062 r27166 165 165 " [--hwvirtex on|off]\n" 166 166 " [--nestedpaging on|off]\n" 167 " [--largepages on|off]\n" 167 168 " [--vtxvpid on|off]\n" 168 169 " [--cpuidset <leaf> <eax> <ebx> <ecx> <edx>]\n" -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r26951 r27166 432 432 else 433 433 RTPrintf("Nested Paging: %s\n", HWVirtExNestedPagingEnabled ? "on" : "off"); 434 435 BOOL HWVirtExLargePagesEnabled; 436 machine->GetHWVirtExProperty(HWVirtExPropertyType_LargePages, &HWVirtExLargePagesEnabled); 437 if (details == VMINFO_MACHINEREADABLE) 438 RTPrintf("largepages=\"%s\"\n", HWVirtExLargePagesEnabled ? "on" : "off"); 439 else 440 RTPrintf("Large Pages: %s\n", HWVirtExLargePagesEnabled ? "on" : "off"); 434 441 435 442 BOOL HWVirtExVPIDEnabled; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r26971 r27166 69 69 MODIFYVM_HWVIRTEXEXCLUSIVE, 70 70 MODIFYVM_NESTEDPAGING, 71 MODIFYVM_LARGEPAGES, 71 72 MODIFYVM_VTXVPID, 72 73 MODIFYVM_CPUS, … … 158 159 { "--hwvirtexexcl", MODIFYVM_HWVIRTEXEXCLUSIVE, RTGETOPT_REQ_BOOL_ONOFF }, 159 160 { "--nestedpaging", MODIFYVM_NESTEDPAGING, RTGETOPT_REQ_BOOL_ONOFF }, 161 { "--largepages", MODIFYVM_LARGEPAGES, RTGETOPT_REQ_BOOL_ONOFF }, 160 162 { "--vtxvpid", MODIFYVM_VTXVPID, RTGETOPT_REQ_BOOL_ONOFF }, 161 163 { "--cpuidset", MODIFYVM_SETCPUID, RTGETOPT_REQ_UINT32 | RTGETOPT_FLAG_HEX}, … … 425 427 } 426 428 429 case MODIFYVM_LARGEPAGES: 430 { 431 CHECK_ERROR(machine, SetHWVirtExProperty(HWVirtExPropertyType_LargePages, ValueUnion.f)); 432 break; 433 } 434 427 435 case MODIFYVM_VTXVPID: 428 436 { -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r27045 r27166 481 481 rc = CFGMR3InsertInteger(pHWVirtExt, "EnableNestedPaging", fEnableNestedPaging); RC_CHECK(); 482 482 483 /* Large pages; requires nested paging */ 484 BOOL fEnableLargePages = false; 485 hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_LargePages, &fEnableLargePages); H(); 486 rc = CFGMR3InsertInteger(pHWVirtExt, "EnableLargePages", fEnableLargePages); RC_CHECK(); 487 483 488 /* VPID (VT-x) */ 484 489 BOOL fEnableVPID = false; -
trunk/src/VBox/Main/MachineImpl.cpp
r26951 r27166 164 164 mHWVirtExEnabled = true; 165 165 mHWVirtExNestedPagingEnabled = true; 166 #if HC_ARCH_BITS == 64 167 /* Default value decision pending. */ 168 mHWVirtExLargePagesEnabled = false; 169 #else 170 /* Not supported on 32 bits hosts. */ 171 mHWVirtExLargePagesEnabled = false; 172 #endif 166 173 mHWVirtExVPIDEnabled = true; 167 174 #if defined(RT_OS_DARWIN) || defined(RT_OS_WINDOWS) … … 1661 1668 switch(property) 1662 1669 { 1663 case HWVirtExPropertyType_Enabled: 1664 *aVal = mHWData->mHWVirtExEnabled; 1665 break; 1666 1667 case HWVirtExPropertyType_Exclusive: 1668 *aVal = mHWData->mHWVirtExExclusive; 1669 break; 1670 1671 case HWVirtExPropertyType_VPID: 1672 *aVal = mHWData->mHWVirtExVPIDEnabled; 1673 break; 1674 1675 case HWVirtExPropertyType_NestedPaging: 1676 *aVal = mHWData->mHWVirtExNestedPagingEnabled; 1677 break; 1678 1679 default: 1680 return E_INVALIDARG; 1670 case HWVirtExPropertyType_Enabled: 1671 *aVal = mHWData->mHWVirtExEnabled; 1672 break; 1673 1674 case HWVirtExPropertyType_Exclusive: 1675 *aVal = mHWData->mHWVirtExExclusive; 1676 break; 1677 1678 case HWVirtExPropertyType_VPID: 1679 *aVal = mHWData->mHWVirtExVPIDEnabled; 1680 break; 1681 1682 case HWVirtExPropertyType_NestedPaging: 1683 *aVal = mHWData->mHWVirtExNestedPagingEnabled; 1684 break; 1685 1686 case HWVirtExPropertyType_LargePages: 1687 *aVal = mHWData->mHWVirtExLargePagesEnabled; 1688 break; 1689 1690 default: 1691 return E_INVALIDARG; 1681 1692 } 1682 1693 return S_OK; … … 1699 1710 case HWVirtExPropertyType_Enabled: 1700 1711 pb = &mHWData->mHWVirtExEnabled; 1701 break;1712 break; 1702 1713 1703 1714 case HWVirtExPropertyType_Exclusive: 1704 1715 pb = &mHWData->mHWVirtExExclusive; 1705 break;1716 break; 1706 1717 1707 1718 case HWVirtExPropertyType_VPID: 1708 1719 pb = &mHWData->mHWVirtExVPIDEnabled; 1709 break;1720 break; 1710 1721 1711 1722 case HWVirtExPropertyType_NestedPaging: 1712 1723 pb = &mHWData->mHWVirtExNestedPagingEnabled; 1713 break; 1724 break; 1725 1726 case HWVirtExPropertyType_LargePages: 1727 pb = &mHWData->mHWVirtExLargePagesEnabled; 1728 break; 1714 1729 1715 1730 default: … … 6198 6213 mHWData->mHWVirtExExclusive = data.fHardwareVirtExclusive; 6199 6214 mHWData->mHWVirtExNestedPagingEnabled = data.fNestedPaging; 6215 mHWData->mHWVirtExLargePagesEnabled = data.fLargePages; 6200 6216 mHWData->mHWVirtExVPIDEnabled = data.fVPID; 6201 6217 mHWData->mPAEEnabled = data.fPAE; … … 7254 7270 data.fHardwareVirtExclusive = !!mHWData->mHWVirtExExclusive; 7255 7271 data.fNestedPaging = !!mHWData->mHWVirtExNestedPagingEnabled; 7272 data.fLargePages = !!mHWData->mHWVirtExLargePagesEnabled; 7256 7273 data.fVPID = !!mHWData->mHWVirtExVPIDEnabled; 7257 7274 data.fPAE = !!mHWData->mPAEEnabled; -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r26968 r27166 866 866 <desc> 867 867 Whether Nested Paging is enabled. If this extension is not available, it will not be used. 868 </desc> 869 </const> 870 <const name="LargePages" value="5"> 871 <desc> 872 Whether large page allocation is enabled; requires nested paging and a 64 bits host. 868 873 </desc> 869 874 </const> -
trunk/src/VBox/Main/include/MachineImpl.h
r26459 r27166 275 275 BOOL mHWVirtExExclusive; 276 276 BOOL mHWVirtExNestedPagingEnabled; 277 BOOL mHWVirtExLargePagesEnabled; 277 278 BOOL mHWVirtExVPIDEnabled; 278 279 BOOL mAccelerate2DVideoEnabled; -
trunk/src/VBox/Main/xml/Settings.cpp
r26713 r27166 1461 1461 fHardwareVirtExclusive(HWVIRTEXCLUSIVEDEFAULT), 1462 1462 fNestedPaging(true), 1463 fLargePages(false), 1463 1464 fVPID(true), 1464 1465 fSyntheticCpu(false), … … 1505 1506 && (fHardwareVirtExclusive == h.fHardwareVirtExclusive) 1506 1507 && (fNestedPaging == h.fNestedPaging) 1508 && (fLargePages == h.fLargePages) 1507 1509 && (fVPID == h.fVPID) 1508 1510 && (fSyntheticCpu == h.fSyntheticCpu) … … 2012 2014 if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtExNestedPaging"))) 2013 2015 pelmCPUChild->getAttributeValue("enabled", hw.fNestedPaging); 2016 if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtExLargePages"))) 2017 pelmCPUChild->getAttributeValue("enabled", hw.fLargePages); 2014 2018 if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtExVPID"))) 2015 2019 pelmCPUChild->getAttributeValue("enabled", hw.fVPID); … … 2909 2913 if (m->sv >= SettingsVersion_v1_10) 2910 2914 { 2915 pelmCPU->createChild("HardwareVirtExLargePages")->setAttribute("enabled", hw.fLargePages); 2911 2916 pelmCPU->setAttribute("hotplug", hw.fCpuHotPlug); 2912 2917
Note:
See TracChangeset
for help on using the changeset viewer.