Changeset 49058 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 11, 2013 3:51:50 PM (11 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r49038 r49058 921 921 <enum 922 922 name="CPUPropertyType" 923 uuid=" 24d356a6-2f45-4abd-b977-1cbe9c4701f5"923 uuid="52bc41f4-a279-45da-88ab-3a1d86fb73eb" 924 924 > 925 925 <desc> … … 947 947 This setting determines whether VirtualBox will advertise long mode 948 948 (i.e. 64-bit guest support) and let the guest enter it. 949 </desc> 950 </const> 951 <const name="TripleFaultReset" value="4"> 952 <desc> 953 This setting determines whether a triple fault within a guest will trigger an internal 954 error condition and stop the VM (default) or reset the virtual CPU and continue execution. 949 955 </desc> 950 956 </const> -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r49039 r49058 188 188 mLongMode = HC_ARCH_BITS == 64 ? settings::Hardware::LongMode_Enabled : settings::Hardware::LongMode_Disabled; 189 189 mSyntheticCpu = false; 190 mTripleFaultReset = false; 190 191 mHPETEnabled = false; 191 192 … … 2239 2240 break; 2240 2241 2242 case CPUPropertyType_TripleFaultReset: 2243 *aVal = mHWData->mTripleFaultReset; 2244 break; 2245 2241 2246 default: 2242 2247 return E_INVALIDARG; … … 2273 2278 mHWData.backup(); 2274 2279 mHWData->mLongMode = !aVal ? settings::Hardware::LongMode_Disabled : settings::Hardware::LongMode_Enabled; 2280 break; 2281 2282 case CPUPropertyType_TripleFaultReset: 2283 setModified(IsModified_MachineData); 2284 mHWData.backup(); 2285 mHWData->mTripleFaultReset = !!aVal; 2275 2286 break; 2276 2287 … … 9214 9225 mHWData->mSyntheticCpu = data.fSyntheticCpu; 9215 9226 mHWData->mLongMode = data.enmLongMode; 9227 mHWData->mTripleFaultReset = data.fTripleFaultReset; 9216 9228 mHWData->mCPUCount = data.cCPUs; 9217 9229 mHWData->mCPUHotPlugEnabled = data.fCpuHotPlug; … … 10539 10551 data.enmLongMode = mHWData->mLongMode; 10540 10552 data.fSyntheticCpu = !!mHWData->mSyntheticCpu; 10553 data.fTripleFaultReset = !!mHWData->mTripleFaultReset; 10541 10554 10542 10555 /* Standard and Extended CPUID leafs. */ -
trunk/src/VBox/Main/xml/Settings.cpp
r49028 r49058 1885 1885 fPAE(false), 1886 1886 enmLongMode(HC_ARCH_BITS == 64 ? Hardware::LongMode_Enabled : Hardware::LongMode_Disabled), 1887 fTripleFaultReset(false), 1887 1888 cCPUs(1), 1888 1889 fCpuHotPlug(false), … … 1955 1956 && (fPAE == h.fPAE) 1956 1957 && (enmLongMode == h.enmLongMode) 1958 && (fTripleFaultReset == h.fTripleFaultReset) 1957 1959 && (cCPUs == h.cCPUs) 1958 1960 && (fCpuHotPlug == h.fCpuHotPlug) … … 2712 2714 if ((pelmCPUChild = pelmHwChild->findChildElement("SyntheticCpu"))) 2713 2715 pelmCPUChild->getAttributeValue("enabled", hw.fSyntheticCpu); 2716 2717 if ((pelmCPUChild = pelmHwChild->findChildElement("TripleFaultReset"))) 2718 pelmCPUChild->getAttributeValue("enabled", hw.fTripleFaultReset); 2719 2714 2720 if ((pelmCPUChild = pelmHwChild->findChildElement("CpuIdTree"))) 2715 2721 readCpuIdTree(*pelmCPUChild, hw.llCpuIdLeafs); … … 3957 3963 if (hw.fSyntheticCpu) 3958 3964 pelmCPU->createChild("SyntheticCpu")->setAttribute("enabled", hw.fSyntheticCpu); 3965 if (hw.fTripleFaultReset) 3966 pelmCPU->createChild("TripleFaultReset")->setAttribute("enabled", hw.fTripleFaultReset); 3959 3967 pelmCPU->setAttribute("count", hw.cCPUs); 3960 3968 if (hw.ulCpuExecutionCap != 100)
Note:
See TracChangeset
for help on using the changeset viewer.