Changeset 7988 in vbox for trunk/src/VBox/Main
- Timestamp:
- Apr 15, 2008 1:29:51 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29641
- Location:
- trunk/src/VBox/Main
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r7987 r7988 167 167 } 168 168 #endif 169 170 /* Physical Address Extension (PAE) */ 171 BOOL fEnablePAE = false; 172 hrc = pMachine->COMGETTER(PAEEnabled)(&fEnablePAE); H(); 173 rc = CFGMR3InsertInteger(pRoot, "EnablePAE", fEnablePAE); RC_CHECK(); 169 174 170 175 BOOL fIOAPIC; -
trunk/src/VBox/Main/MachineDebuggerImpl.cpp
r7987 r7988 510 510 511 511 /** 512 * Returns the current PAE flag. 513 * 514 * @returns COM status code 515 * @param enabled address of result variable 516 */ 517 STDMETHODIMP MachineDebugger::COMGETTER(PAEEnabled)(BOOL *enabled) 518 { 519 if (!enabled) 520 return E_POINTER; 521 522 AutoLock lock(this); 523 CHECK_READY(); 524 525 Console::SafeVMPtrQuiet pVM (mParent); 526 if (pVM.isOk()) 527 { 528 uint64_t cr4 = CPUMGetGuestCR4(pVM.raw()); 529 *enabled = !!(cr4 & X86_CR4_PAE); 530 } 531 else 532 *enabled = false; 533 return S_OK; 534 } 535 536 /** 512 537 * Returns the current virtual time rate. 513 538 * -
trunk/src/VBox/Main/MachineImpl.cpp
r7987 r7988 173 173 mMonitorCount = 1; 174 174 mHWVirtExEnabled = TSBool_False; 175 mPAEEnabled = false; 175 176 176 177 /* default boot order: floppy - DVD - HDD */ … … 199 200 mMonitorCount != that.mMonitorCount || 200 201 mHWVirtExEnabled != that.mHWVirtExEnabled || 202 mPAEEnabled != that.mPAEEnabled || 201 203 mClipboardMode != that.mClipboardMode) 202 204 return false; … … 1112 1114 mHWData.backup(); 1113 1115 mHWData->mHWVirtExEnabled = enable; 1116 1117 return S_OK; 1118 } 1119 1120 STDMETHODIMP Machine::COMGETTER(PAEEnabled)(BOOL *enabled) 1121 { 1122 if (!enabled) 1123 return E_POINTER; 1124 1125 AutoCaller autoCaller (this); 1126 CheckComRCReturnRC (autoCaller.rc()); 1127 1128 AutoReaderLock alock (this); 1129 1130 *enabled = mHWData->mPAEEnabled; 1131 1132 return S_OK; 1133 } 1134 1135 STDMETHODIMP Machine::COMSETTER(PAEEnabled)(BOOL enable) 1136 { 1137 AutoCaller autoCaller (this); 1138 CheckComRCReturnRC (autoCaller.rc()); 1139 1140 AutoLock alock (this); 1141 1142 HRESULT rc = checkStateDependency (MutableStateDep); 1143 CheckComRCReturnRC (rc); 1144 1145 /** @todo check validity! */ 1146 1147 mHWData.backup(); 1148 mHWData->mPAEEnabled = enable; 1114 1149 1115 1150 return S_OK; … … 4245 4280 /* default value in case the node is not there */ 4246 4281 mHWData->mHWVirtExEnabled = TSBool_Default; 4282 mHWData->mPAEEnabled = false; 4247 4283 4248 4284 Key cpuNode = aNode.findKey ("CPU"); … … 4260 4296 mHWData->mHWVirtExEnabled = TSBool_Default; 4261 4297 } 4298 /* PAE (optional, default is false) */ 4299 mHWData->mPAEEnabled = cpuNode.value <BOOL> ("PAE"); 4262 4300 } 4263 4301 } … … 5615 5653 case TSBool_Default: 5616 5654 value = "default"; 5617 } 5618 hwVirtExNode.setStringValue ("enabled", value); 5655 break; 5656 } 5657 cpuNode.setStringValue ("enabled", value); 5658 5659 /* PAE (optional, default is false) */ 5660 cpuNode.setValue <BOOL> ("PAE", mHWData->mPAEEnabled); 5619 5661 } 5620 5662 -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r7987 r7988 2484 2484 <interface 2485 2485 name="IMachine" extends="$unknown" 2486 uuid=" 4f6b4977-95fd-40b1-8391-fc165c040635"2486 uuid="f95c0793-7737-49a1-85d9-6da81097173b" 2487 2487 wsmap="managed" 2488 2488 > … … 2707 2707 </attribute> 2708 2708 2709 <attribute name="PAEEnabled" type="boolean" default="false"> 2710 <desc> 2711 This setting determines whether VirtualBox will expose the Physical Address 2712 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE 2713 is not available, it will not be reported. 2714 </desc> 2715 </attribute> 2716 2709 2717 <attribute name="snapshotFolder" type="wstring"> 2710 2718 <desc> … … 8558 8566 </desc> 8559 8567 </attribute> 8568 8569 <attribute name="PAEEnabled" type="boolean" readonly="yes"> 8570 <desc> 8571 Flag indicating whether the VM is currently making use of the Physical 8572 Address Extension CPU feature. 8573 </desc> 8574 </attribute> 8560 8575 8561 8576 <attribute name="virtualTimeRate" type="unsigned long"> -
trunk/src/VBox/Main/include/MachineDebuggerImpl.h
r7987 r7988 63 63 STDMETHOD(COMSETTER(LogEnabled))(BOOL enable); 64 64 STDMETHOD(COMGETTER(HWVirtExEnabled))(BOOL *enabled); 65 STDMETHOD(COMGETTER(PAEEnabled))(BOOL *enabled); 65 66 STDMETHOD(COMGETTER(VirtualTimeRate))(ULONG *pct); 66 67 STDMETHOD(COMSETTER(VirtualTimeRate))(ULONG pct); -
trunk/src/VBox/Main/include/MachineImpl.h
r7987 r7988 231 231 ULONG mMonitorCount; 232 232 TSBool_T mHWVirtExEnabled; 233 BOOL mPAEEnabled; 233 234 234 235 DeviceType_T mBootOrder [SchemaDefs::MaxBootPosition]; … … 459 460 STDMETHOD(COMGETTER(HWVirtExEnabled))(TSBool_T *enabled); 460 461 STDMETHOD(COMSETTER(HWVirtExEnabled))(TSBool_T enabled); 462 STDMETHOD(COMGETTER(PAEEnabled))(BOOL *enabled); 463 STDMETHOD(COMSETTER(PAEEnabled))(BOOL enabled); 461 464 STDMETHOD(COMGETTER(SnapshotFolder))(BSTR *aSavedStateFolder); 462 465 STDMETHOD(COMSETTER(SnapshotFolder))(INPTR BSTR aSavedStateFolder);
Note:
See TracChangeset
for help on using the changeset viewer.