Changeset 26459 in vbox
- Timestamp:
- Feb 12, 2010 11:42:36 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57608
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r26440 r26459 565 565 fPAE; 566 566 uint32_t cCPUs; 567 bool fCpuHotPlug; // requires settings version 1.11 (VirtualBox 3.2) 568 CpuList llCpus; // requires settings version 1.11 (VirtualBox 3.2) 567 bool fCpuHotPlug; // requires settings version 1.10 (VirtualBox 3.2) 568 CpuList llCpus; // requires settings version 1.10 (VirtualBox 3.2) 569 bool fHpetEnabled; // requires settings version 1.10 (VirtualBox 3.2) 570 569 571 CpuIdLeafsList llCpuIdLeafs; 570 572 … … 578 580 fAccelerate2DVideo; // requires settings version 1.8 (VirtualBox 3.1) 579 581 FirmwareType_T firmwareType; // requires settings version 1.9 (VirtualBox 3.1) 582 580 583 PointingHidType_T pointingHidType; // requires settings version 1.10 (VirtualBox 3.2) 581 584 KeyboardHidType_T keyboardHidType; // requires settings version 1.10 (VirtualBox 3.2) -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r26392 r26459 594 594 BOOL fHpetEnabled; 595 595 #ifdef VBOX_WITH_HPET 596 /* Need ability to allow enabling HPET in other profiles too */ 597 fHpetEnabled = fExtProfile; 596 hrc = pMachine->COMGETTER(HpetEnabled)(&fHpetEnabled); H(); 597 /* Always enable HPET in extended profile */ 598 fHpetEnabled |= fExtProfile; 598 599 #else 599 600 fHpetEnabled = false; -
trunk/src/VBox/Main/MachineImpl.cpp
r26443 r26459 177 177 mSyntheticCpu = false; 178 178 mPropertyServiceActive = false; 179 mHpetEnabled = false; 179 180 180 181 /* default boot order: floppy - DVD - HDD */ … … 189 190 190 191 mFirmwareType = FirmwareType_BIOS; 192 mKeyboardHidType = KeyboardHidType_PS2Keyboard; 193 mPointingHidType = PointingHidType_PS2Mouse; 191 194 192 195 for (size_t i = 0; i < RT_ELEMENTS(mCPUAttached); i++) … … 1136 1139 1137 1140 mHWData->mCPUHotPlugEnabled = enabled; 1141 1142 return rc; 1143 } 1144 1145 STDMETHODIMP Machine::COMGETTER(HpetEnabled)(BOOL *enabled) 1146 { 1147 CheckComArgOutPointerValid(enabled); 1148 1149 AutoCaller autoCaller(this); 1150 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1151 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1152 1153 *enabled = mHWData->mHpetEnabled; 1154 1155 return S_OK; 1156 } 1157 1158 STDMETHODIMP Machine::COMSETTER(HpetEnabled)(BOOL enabled) 1159 { 1160 HRESULT rc = S_OK; 1161 1162 AutoCaller autoCaller(this); 1163 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1164 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1165 1166 rc = checkStateDependency(MutableStateDep); 1167 if (FAILED(rc)) return rc; 1168 1169 setModified(IsModified_MachineData); 1170 mHWData.backup(); 1171 1172 mHWData->mHpetEnabled = enabled; 1138 1173 1139 1174 return rc; … … 6259 6294 mHWData->mPointingHidType = data.pointingHidType; 6260 6295 mHWData->mKeyboardHidType = data.keyboardHidType; 6296 mHWData->mHpetEnabled = data.fHpetEnabled; 6261 6297 6262 6298 #ifdef VBOX_WITH_VRDP … … 7273 7309 data.pointingHidType = mHWData->mPointingHidType; 7274 7310 data.keyboardHidType = mHWData->mKeyboardHidType; 7311 7312 // HPET 7313 data.fHpetEnabled = mHWData->mHpetEnabled; 7275 7314 7276 7315 // boot order -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r26444 r26459 4227 4227 <interface 4228 4228 name="IMachine" extends="$unknown" 4229 uuid=" 91470ab5-8457-48ab-8a3f-a2e68d8ae923"4229 uuid="f2816298-7408-4c44-a117-0ed8ea09b9bc" 4230 4230 wsmap="managed" 4231 4231 > … … 4478 4478 4479 4479 <attribute name="keyboardHidType" type="KeyboardHidType"> 4480 <desc>Type of keyboard HID used in this VM 4480 <desc>Type of keyboard HID used in this VM. 4481 4481 The default is typically "PS2Keyboard" but can vary depending on the 4482 4482 requirements of the guest operating system.</desc> 4483 </attribute> 4484 4485 <attribute name="hpetEnabled" type="boolean"> 4486 <desc>This attribute controls if High Precision Event Timer (HPET) is 4487 enabled in this VM. Use this property if you want to provide guests 4488 with additional time source, or if guest requires HPET to function correctly. 4489 Default is false.</desc> 4483 4490 </attribute> 4484 4491 -
trunk/src/VBox/Main/include/MachineImpl.h
r26440 r26459 282 282 BOOL mCPUHotPlugEnabled; 283 283 BOOL mAccelerate3DEnabled; 284 BOOL mHpetEnabled; 284 285 285 286 BOOL mCPUAttached[SchemaDefs::MaxCPUCount]; … … 376 377 STDMETHOD(COMGETTER(CPUHotPlugEnabled))(BOOL *enabled); 377 378 STDMETHOD(COMSETTER(CPUHotPlugEnabled))(BOOL enabled); 379 STDMETHOD(COMGETTER(HpetEnabled))(BOOL *enabled); 380 STDMETHOD(COMSETTER(HpetEnabled))(BOOL enabled); 378 381 STDMETHOD(COMGETTER(MemoryBalloonSize))(ULONG *memoryBalloonSize); 379 382 STDMETHOD(COMSETTER(MemoryBalloonSize))(ULONG memoryBalloonSize); … … 423 426 STDMETHOD(COMGETTER(RTCUseUTC))(BOOL *aEnabled); 424 427 STDMETHOD(COMSETTER(RTCUseUTC))(BOOL aEnabled); 428 STDMETHOD(COMGETTER(FirmwareType)) (FirmwareType_T *aFirmware); 429 STDMETHOD(COMSETTER(FirmwareType)) (FirmwareType_T aFirmware); 430 STDMETHOD(COMGETTER(KeyboardHidType)) (KeyboardHidType_T *aKeyboardHidType); 431 STDMETHOD(COMSETTER(KeyboardHidType)) (KeyboardHidType_T aKeyboardHidType); 432 STDMETHOD(COMGETTER(PointingHidType)) (PointingHidType_T *aPointingHidType); 433 STDMETHOD(COMSETTER(PointingHidType)) (PointingHidType_T aPointingHidType); 425 434 426 435 // IMachine methods … … 472 481 STDMETHOD(GetStorageControllerByName(IN_BSTR aName, IStorageController **storageController)); 473 482 STDMETHOD(GetStorageControllerByInstance(ULONG aInstance, IStorageController **storageController)); 474 STDMETHOD(COMGETTER(FirmwareType)) (FirmwareType_T *aFirmware);475 STDMETHOD(COMSETTER(FirmwareType)) (FirmwareType_T aFirmware);476 STDMETHOD(COMGETTER(KeyboardHidType)) (KeyboardHidType_T *aKeyboardHidType);477 STDMETHOD(COMSETTER(KeyboardHidType)) (KeyboardHidType_T aKeyboardHidType);478 STDMETHOD(COMGETTER(PointingHidType)) (PointingHidType_T *aPointingHidType);479 STDMETHOD(COMSETTER(PointingHidType)) (PointingHidType_T aPointingHidType);480 481 483 STDMETHOD(QuerySavedThumbnailSize)(ULONG *aSize, ULONG *aWidth, ULONG *aHeight); 482 484 STDMETHOD(ReadSavedThumbnailToArray)(BOOL aBGR, ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData)); -
trunk/src/VBox/Main/xml/Settings.cpp
r26444 r26459 1466 1466 cCPUs(1), 1467 1467 fCpuHotPlug(false), 1468 fHpetEnabled(false), 1468 1469 ulMemorySizeMB((uint32_t)-1), 1469 1470 ulVRAMSizeMB(8), … … 1509 1510 && (cCPUs == h.cCPUs) 1510 1511 && (fCpuHotPlug == h.fCpuHotPlug) 1512 && (fHpetEnabled == h.fHpetEnabled) 1511 1513 && (llCpus == h.llCpus) 1512 1514 && (llCpuIdLeafs == h.llCpuIdLeafs) … … 2093 2095 } 2094 2096 } 2097 else if (pelmHwChild->nameEquals("HPET")) 2098 { 2099 pelmHwChild->getAttributeValue("enabled", hw.fHpetEnabled); 2100 } 2095 2101 else if (pelmHwChild->nameEquals("Boot")) 2096 2102 { … … 2987 2993 } 2988 2994 2995 if ( (m->sv >= SettingsVersion_v1_10) 2996 ) 2997 { 2998 xml::ElementNode *pelmHpet = pelmHardware->createChild("HPET"); 2999 pelmHpet->setAttribute("enabled", hw.fHpetEnabled); 3000 } 3001 2989 3002 xml::ElementNode *pelmBoot = pelmHardware->createChild("Boot"); 2990 3003 for (BootOrderMap::const_iterator it = hw.mapBootOrder.begin(); … … 3556 3569 } 3557 3570 3571 // VirtualBox 3.2 adds support for CPU hotplug, RTC timezone control, HID type and HPET 3558 3572 if ( m->sv < SettingsVersion_v1_10 3559 3573 && ( fRTCUseUTC … … 3561 3575 || hardwareMachine.pointingHidType != PointingHidType_PS2Mouse 3562 3576 || hardwareMachine.keyboardHidType != KeyboardHidType_PS2Keyboard 3577 || hardwareMachine.fHpetEnabled 3563 3578 ) 3564 3579 )
Note:
See TracChangeset
for help on using the changeset viewer.