Changeset 31818 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 20, 2010 1:06:33 PM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r31706 r31818 636 636 */ 637 637 BOOL fHWVirtExEnabled; 638 BOOL fHwVirtExtForced ;638 BOOL fHwVirtExtForced = false; 639 639 #ifdef VBOX_WITH_RAW_MODE 640 640 hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_Enabled, &fHWVirtExEnabled); H(); … … 652 652 # endif 653 653 #else /* !VBOX_WITH_RAW_MODE */ 654 fHWVirtExEnabled = fHwVirtExtForced = TRUE;654 fHWVirtExEnabled = fHwVirtExtForced = true; 655 655 #endif /* !VBOX_WITH_RAW_MODE */ 656 /* only honor the property value if there was no other reason to enable it */ 657 if (!fHwVirtExtForced) 658 { 659 hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_Force, &fHwVirtExtForced); H(); 660 } 656 661 InsertConfigInteger(pRoot, "HwVirtExtForced", fHwVirtExtForced); 657 662 -
trunk/src/VBox/Main/MachineImpl.cpp
r31817 r31818 160 160 #endif 161 161 mHWVirtExVPIDEnabled = true; 162 mHWVirtExForceEnabled = false; 162 163 #if defined(RT_OS_DARWIN) || defined(RT_OS_WINDOWS) 163 164 mHWVirtExExclusive = false; … … 1965 1966 *aVal = mHWData->mHWVirtExLargePagesEnabled; 1966 1967 break; 1968 1969 case HWVirtExPropertyType_Force: 1970 *aVal = mHWData->mHWVirtExForceEnabled; 1967 1971 1968 1972 default: … … 2014 2018 break; 2015 2019 2020 case HWVirtExPropertyType_Force: 2021 setModified(IsModified_MachineData); 2022 mHWData.backup(); 2023 mHWData->mHWVirtExForceEnabled = !!aVal; 2024 break; 2025 2016 2026 default: 2017 2027 return E_INVALIDARG; … … 7022 7032 mHWData->mHWVirtExLargePagesEnabled = data.fLargePages; 7023 7033 mHWData->mHWVirtExVPIDEnabled = data.fVPID; 7034 mHWData->mHWVirtExForceEnabled = data.fHardwareVirtForce; 7024 7035 mHWData->mPAEEnabled = data.fPAE; 7025 7036 mHWData->mSyntheticCpu = data.fSyntheticCpu; … … 8056 8067 data.fLargePages = !!mHWData->mHWVirtExLargePagesEnabled; 8057 8068 data.fVPID = !!mHWData->mHWVirtExVPIDEnabled; 8069 data.fHardwareVirtForce = !!mHWData->mHWVirtExForceEnabled; 8058 8070 data.fPAE = !!mHWData->mPAEEnabled; 8059 8071 data.fSyntheticCpu = !!mHWData->mSyntheticCpu; -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r31744 r31818 906 906 <desc> 907 907 Whether large page allocation is enabled; requires nested paging and a 64 bits host. 908 </desc> 909 </const> 910 <const name="Force" value="6"> 911 <desc> 912 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If 913 not set, there will be an automatic fallback to software virtualization. 908 914 </desc> 909 915 </const> -
trunk/src/VBox/Main/include/MachineImpl.h
r31742 r31818 257 257 BOOL mHWVirtExLargePagesEnabled; 258 258 BOOL mHWVirtExVPIDEnabled; 259 BOOL mHWVirtExForceEnabled; 259 260 BOOL mAccelerate2DVideoEnabled; 260 261 BOOL mPAEEnabled; -
trunk/src/VBox/Main/xml/Settings.cpp
r31742 r31818 1534 1534 fLargePages(false), 1535 1535 fVPID(true), 1536 fHardwareVirtForce(false), 1536 1537 fSyntheticCpu(false), 1537 1538 fPAE(false), … … 1580 1581 && (fLargePages == h.fLargePages) 1581 1582 && (fVPID == h.fVPID) 1583 && (fHardwareVirtForce == h.fHardwareVirtForce) 1582 1584 && (fSyntheticCpu == h.fSyntheticCpu) 1583 1585 && (fPAE == h.fPAE) … … 2265 2267 if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtExVPID"))) 2266 2268 pelmCPUChild->getAttributeValue("enabled", hw.fVPID); 2269 if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtForce"))) 2270 pelmCPUChild->getAttributeValue("enabled", hw.fHardwareVirtForce); 2267 2271 2268 2272 if (!(pelmCPUChild = pelmHwChild->findChildElement("PAE"))) … … 3177 3181 if (hw.fLargePages) 3178 3182 pelmCPU->createChild("HardwareVirtExLargePages")->setAttribute("enabled", hw.fLargePages); 3183 3184 if (m->sv >= SettingsVersion_v1_9) 3185 pelmCPU->createChild("HardwareVirtForce")->setAttribute("enabled", hw.fHardwareVirtForce); 3179 3186 3180 3187 if (m->sv >= SettingsVersion_v1_10)
Note:
See TracChangeset
for help on using the changeset viewer.