Changeset 27537 in vbox
- Timestamp:
- Mar 19, 2010 2:04:54 PM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 11 edited
-
Frontends/VBoxManage/VBoxManageInfo.cpp (modified) (3 diffs)
-
Frontends/VBoxManage/VBoxManageList.cpp (modified) (2 diffs)
-
Frontends/VBoxManage/VBoxManageModifyVM.cpp (modified) (5 diffs)
-
Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsSystem.cpp (modified) (2 diffs)
-
Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp (modified) (2 diffs)
-
Main/ConsoleImpl2.cpp (modified) (3 diffs)
-
Main/HostImpl.cpp (modified) (1 diff)
-
Main/MachineImpl.cpp (modified) (9 diffs)
-
Main/idl/VirtualBox.xidl (modified) (18 diffs)
-
Main/include/HostImpl.h (modified) (1 diff)
-
Main/include/MachineImpl.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r27255 r27537 255 255 256 256 BOOL fSyntheticCpu; 257 machine->GetC puProperty(CpuPropertyType_Synthetic, &fSyntheticCpu);257 machine->GetCPUProperty(CPUPropertyType_Synthetic, &fSyntheticCpu); 258 258 if (details == VMINFO_MACHINEREADABLE) 259 259 RTPrintf("synthcpu=\"%s\"\n", fSyntheticCpu ? "on" : "off"); … … 273 273 { 274 274 ULONG uEAX, uEBX, uECX, uEDX; 275 rc = machine->GetC puIdLeaf(uLeaf, &uEAX, &uEBX, &uECX, &uEDX);275 rc = machine->GetCPUIDLeaf(uLeaf, &uEAX, &uEBX, &uECX, &uEDX); 276 276 if (SUCCEEDED(rc)) 277 277 { … … 392 392 393 393 BOOL PAEEnabled; 394 machine->GetC puProperty(CpuPropertyType_PAE, &PAEEnabled);394 machine->GetCPUProperty(CPUPropertyType_PAE, &PAEEnabled); 395 395 if (details == VMINFO_MACHINEREADABLE) 396 396 RTPrintf("pae=\"%s\"\n", PAEEnabled ? "on" : "off"); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r26517 r27537 454 454 { 455 455 ULONG uEAX, uEBX, uECX, uEDX, cLeafs; 456 CHECK_ERROR(Host, GetProcessorC puIdLeaf(uCpuNo, s_auCpuIdRanges[i], 0, &cLeafs, &uEBX, &uECX, &uEDX));456 CHECK_ERROR(Host, GetProcessorCPUIDLeaf(uCpuNo, s_auCpuIdRanges[i], 0, &cLeafs, &uEBX, &uECX, &uEDX)); 457 457 if (cLeafs < s_auCpuIdRanges[i] || cLeafs > s_auCpuIdRanges[i+1]) 458 458 continue; … … 460 460 for (ULONG iLeaf = s_auCpuIdRanges[i]; iLeaf <= cLeafs; iLeaf++) 461 461 { 462 CHECK_ERROR(Host, GetProcessorC puIdLeaf(uCpuNo, iLeaf, 0, &uEAX, &uEBX, &uECX, &uEDX));462 CHECK_ERROR(Host, GetProcessorCPUIDLeaf(uCpuNo, iLeaf, 0, &uEAX, &uEBX, &uECX, &uEDX)); 463 463 RTPrintf("%08x %08x %08x %08x %08x\n", iLeaf, uEAX, uEBX, uECX, uEDX); 464 464 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r27519 r27537 379 379 case MODIFYVM_PAE: 380 380 { 381 CHECK_ERROR(machine, SetC puProperty(CpuPropertyType_PAE, ValueUnion.f));381 CHECK_ERROR(machine, SetCPUProperty(CPUPropertyType_PAE, ValueUnion.f)); 382 382 break; 383 383 } … … 385 385 case MODIFYVM_SYNTHCPU: 386 386 { 387 CHECK_ERROR(machine, SetC puProperty(CpuPropertyType_Synthetic, ValueUnion.f));387 CHECK_ERROR(machine, SetCPUProperty(CPUPropertyType_Synthetic, ValueUnion.f)); 388 388 break; 389 389 } … … 415 415 aValue[i] = ValueUnion.u32; 416 416 } 417 CHECK_ERROR(machine, SetC puIdLeaf(id, aValue[0], aValue[1], aValue[2], aValue[3]));417 CHECK_ERROR(machine, SetCPUIDLeaf(id, aValue[0], aValue[1], aValue[2], aValue[3])); 418 418 break; 419 419 } … … 421 421 case MODIFYVM_DELCPUID: 422 422 { 423 CHECK_ERROR(machine, RemoveC puIdLeaf(ValueUnion.u32));423 CHECK_ERROR(machine, RemoveCPUIDLeaf(ValueUnion.u32)); 424 424 break; 425 425 } … … 427 427 case MODIFYVM_DELALLCPUID: 428 428 { 429 CHECK_ERROR(machine, RemoveAllC puIdLeafs());429 CHECK_ERROR(machine, RemoveAllCPUIDLeaves()); 430 430 break; 431 431 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsSystem.cpp
r26714 r27537 186 186 .GetProcessorFeature (KProcessorFeature_PAE); 187 187 mCbPae->setEnabled (fPAESupported); 188 mCbPae->setChecked (aMachine.GetC puProperty(KCpuPropertyType_PAE));188 mCbPae->setChecked (aMachine.GetCPUProperty(KCPUPropertyType_PAE)); 189 189 190 190 /* VT-x/AMD-V */ … … 246 246 247 247 /* PAE/NX */ 248 mMachine.SetC puProperty(KCpuPropertyType_PAE, mCbPae->isChecked());248 mMachine.SetCPUProperty(KCPUPropertyType_PAE, mCbPae->isChecked()); 249 249 250 250 /* VT-x/AMD-V */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp
r27480 r27537 682 682 683 683 // Turn on PAE, if recommended 684 m_Machine.SetC puProperty(KCpuPropertyType_PAE, type.GetRecommendedPae());684 m_Machine.SetCPUProperty(KCPUPropertyType_PAE, type.GetRecommendedPae()); 685 685 686 686 // Set recommended firmware type … … 692 692 { 693 693 m_Machine.SetKeyboardHidType(KKeyboardHidType_USBKeyboard); 694 m_Machine.SetPointingHidType(type.GetRecommendedUsbTablet() ? 694 m_Machine.SetPointingHidType(type.GetRecommendedUsbTablet() ? 695 695 KPointingHidType_USBTablet : KPointingHidType_USBMouse); 696 696 if (!usbController.isNull()) -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r27461 r27537 330 330 ComPtr<IGuestOSType> guestOSType; 331 331 hrc = virtualBox->GetGuestOSType(osTypeId, guestOSType.asOutParam()); H(); 332 332 333 333 Bstr guestTypeFamilyId; 334 334 hrc = guestOSType->COMGETTER(FamilyId)(guestTypeFamilyId.asOutParam()); H(); … … 370 370 { 371 371 ULONG ulEax, ulEbx, ulEcx, ulEdx; 372 hrc = pMachine->GetC puIdLeaf(uLeaf, &ulEax, &ulEbx, &ulEcx, &ulEdx);372 hrc = pMachine->GetCPUIDLeaf(uLeaf, &ulEax, &ulEbx, &ulEcx, &ulEdx); 373 373 if (SUCCEEDED(hrc)) 374 374 { … … 497 497 /* Physical Address Extension (PAE) */ 498 498 BOOL fEnablePAE = false; 499 hrc = pMachine->GetC puProperty(CpuPropertyType_PAE, &fEnablePAE); H();499 hrc = pMachine->GetCPUProperty(CPUPropertyType_PAE, &fEnablePAE); H(); 500 500 rc = CFGMR3InsertInteger(pRoot, "EnablePAE", fEnablePAE); RC_CHECK(); 501 501 502 502 /* Synthetic CPU */ 503 503 BOOL fSyntheticCpu = false; 504 hrc = pMachine->GetC puProperty(CpuPropertyType_Synthetic, &fSyntheticCpu); H();504 hrc = pMachine->GetCPUProperty(CPUPropertyType_Synthetic, &fSyntheticCpu); H(); 505 505 rc = CFGMR3InsertInteger(pRoot, "SyntheticCpu", fSyntheticCpu); RC_CHECK(); 506 506 -
trunk/src/VBox/Main/HostImpl.cpp
r26753 r27537 940 940 * @param aValEDX Where to return EDX. 941 941 */ 942 STDMETHODIMP Host::GetProcessorC puIdLeaf(ULONG aCpuId, ULONG aLeaf, ULONG aSubLeaf,942 STDMETHODIMP Host::GetProcessorCPUIDLeaf(ULONG aCpuId, ULONG aLeaf, ULONG aSubLeaf, 943 943 ULONG *aValEAX, ULONG *aValEBX, ULONG *aValECX, ULONG *aValEDX) 944 944 { -
trunk/src/VBox/Main/MachineImpl.cpp
r27324 r27537 1423 1423 } 1424 1424 1425 STDMETHODIMP Machine::GetC puProperty(CpuPropertyType_T property, BOOL *aVal)1425 STDMETHODIMP Machine::GetCPUProperty(CPUPropertyType_T property, BOOL *aVal) 1426 1426 { 1427 1427 if (!aVal) … … 1435 1435 switch(property) 1436 1436 { 1437 case C puPropertyType_PAE:1437 case CPUPropertyType_PAE: 1438 1438 *aVal = mHWData->mPAEEnabled; 1439 1439 break; 1440 1440 1441 case C puPropertyType_Synthetic:1441 case CPUPropertyType_Synthetic: 1442 1442 *aVal = mHWData->mSyntheticCpu; 1443 1443 break; … … 1449 1449 } 1450 1450 1451 STDMETHODIMP Machine::SetC puProperty(CpuPropertyType_T property, BOOL aVal)1451 STDMETHODIMP Machine::SetCPUProperty(CPUPropertyType_T property, BOOL aVal) 1452 1452 { 1453 1453 AutoCaller autoCaller(this); … … 1461 1461 switch(property) 1462 1462 { 1463 case C puPropertyType_PAE:1463 case CPUPropertyType_PAE: 1464 1464 setModified(IsModified_MachineData); 1465 1465 mHWData.backup(); … … 1467 1467 break; 1468 1468 1469 case C puPropertyType_Synthetic:1469 case CPUPropertyType_Synthetic: 1470 1470 setModified(IsModified_MachineData); 1471 1471 mHWData.backup(); … … 1479 1479 } 1480 1480 1481 STDMETHODIMP Machine::GetC puIdLeaf(ULONG aId, ULONG *aValEax, ULONG *aValEbx, ULONG *aValEcx, ULONG *aValEdx)1481 STDMETHODIMP Machine::GetCPUIDLeaf(ULONG aId, ULONG *aValEax, ULONG *aValEbx, ULONG *aValEcx, ULONG *aValEdx) 1482 1482 { 1483 1483 CheckComArgOutPointerValid(aValEax); … … 1539 1539 } 1540 1540 1541 STDMETHODIMP Machine::SetC puIdLeaf(ULONG aId, ULONG aValEax, ULONG aValEbx, ULONG aValEcx, ULONG aValEdx)1541 STDMETHODIMP Machine::SetCPUIDLeaf(ULONG aId, ULONG aValEax, ULONG aValEbx, ULONG aValEcx, ULONG aValEdx) 1542 1542 { 1543 1543 AutoCaller autoCaller(this); … … 1601 1601 } 1602 1602 1603 STDMETHODIMP Machine::RemoveC puIdLeaf(ULONG aId)1603 STDMETHODIMP Machine::RemoveCPUIDLeaf(ULONG aId) 1604 1604 { 1605 1605 AutoCaller autoCaller(this); … … 1657 1657 } 1658 1658 1659 STDMETHODIMP Machine::RemoveAllC puIdLeafs()1659 STDMETHODIMP Machine::RemoveAllCPUIDLeaves() 1660 1660 { 1661 1661 AutoCaller autoCaller(this); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r27532 r27537 807 807 808 808 <enum 809 name="C puPropertyType"810 uuid=" af7bb668-eeb1-4404-b77f-a114b30c92d6"809 name="CPUPropertyType" 810 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5" 811 811 > 812 812 <desc> 813 813 Virtual CPU property type. This enumeration represents possible values of the 814 IMachine get- and setC puProperty methods.814 IMachine get- and setCPUProperty methods. 815 815 </desc> 816 816 <const name="Null" value="0"> … … 4267 4267 <interface 4268 4268 name="IMachine" extends="$unknown" 4269 uuid=" 8d8f6fbb-54c1-4604-b68e-17619d458611"4269 uuid="254f7fd0-a99b-4ea9-992f-794624e67882" 4270 4270 wsmap="managed" 4271 4271 > … … 5371 5371 </method> 5372 5372 5373 <method name="getC puProperty" const="yes">5373 <method name="getCPUProperty" const="yes"> 5374 5374 <desc> 5375 5375 Returns the virtual CPU boolean value of the specified property. … … 5380 5380 5381 5381 </desc> 5382 <param name="property" type="C puPropertyType" dir="in">5382 <param name="property" type="CPUPropertyType" dir="in"> 5383 5383 <desc> 5384 5384 Property type to query. … … 5392 5392 </method> 5393 5393 5394 <method name="setC puProperty">5394 <method name="setCPUProperty"> 5395 5395 <desc> 5396 5396 Sets the virtual CPU boolean value of the specified property. … … 5401 5401 5402 5402 </desc> 5403 <param name="property" type="C puPropertyType" dir="in">5403 <param name="property" type="CPUPropertyType" dir="in"> 5404 5404 <desc> 5405 5405 Property type to query. … … 5413 5413 </method> 5414 5414 5415 <method name="getC puIdLeaf" const="yes">5415 <method name="getCPUIDLeaf" const="yes"> 5416 5416 <desc> 5417 5417 Returns the virtual CPU cpuid information for the specified leaf. … … 5430 5430 <param name="id" type="unsigned long" dir="in"> 5431 5431 <desc> 5432 C puidleaf index.5432 CPUID leaf index. 5433 5433 </desc> 5434 5434 </param> 5435 5435 <param name="valEax" type="unsigned long" dir="out"> 5436 5436 <desc> 5437 C puidleaf value for register eax.5437 CPUID leaf value for register eax. 5438 5438 </desc> 5439 5439 </param> 5440 5440 <param name="valEbx" type="unsigned long" dir="out"> 5441 5441 <desc> 5442 C puidleaf value for register ebx.5442 CPUID leaf value for register ebx. 5443 5443 </desc> 5444 5444 </param> 5445 5445 <param name="valEcx" type="unsigned long" dir="out"> 5446 5446 <desc> 5447 C puidleaf value for register ecx.5447 CPUID leaf value for register ecx. 5448 5448 </desc> 5449 5449 </param> 5450 5450 <param name="valEdx" type="unsigned long" dir="out"> 5451 5451 <desc> 5452 C puidleaf value for register edx.5453 </desc> 5454 </param> 5455 </method> 5456 5457 <method name="setC puIdLeaf" const="yes">5452 CPUID leaf value for register edx. 5453 </desc> 5454 </param> 5455 </method> 5456 5457 <method name="setCPUIDLeaf" const="yes"> 5458 5458 <desc> 5459 5459 Sets the virtual CPU cpuid information for the specified leaf. Note that these values … … 5476 5476 <param name="id" type="unsigned long" dir="in"> 5477 5477 <desc> 5478 C puidleaf index.5478 CPUID leaf index. 5479 5479 </desc> 5480 5480 </param> 5481 5481 <param name="valEax" type="unsigned long" dir="in"> 5482 5482 <desc> 5483 C puidleaf value for register eax.5483 CPUID leaf value for register eax. 5484 5484 </desc> 5485 5485 </param> 5486 5486 <param name="valEbx" type="unsigned long" dir="in"> 5487 5487 <desc> 5488 C puidleaf value for register ebx.5488 CPUID leaf value for register ebx. 5489 5489 </desc> 5490 5490 </param> 5491 5491 <param name="valEcx" type="unsigned long" dir="in"> 5492 5492 <desc> 5493 C puidleaf value for register ecx.5493 CPUID leaf value for register ecx. 5494 5494 </desc> 5495 5495 </param> 5496 5496 <param name="valEdx" type="unsigned long" dir="in"> 5497 5497 <desc> 5498 C puidleaf value for register edx.5499 </desc> 5500 </param> 5501 </method> 5502 5503 <method name="removeC puIdLeaf" const="yes">5498 CPUID leaf value for register edx. 5499 </desc> 5500 </param> 5501 </method> 5502 5503 <method name="removeCPUIDLeaf" const="yes"> 5504 5504 <desc> 5505 5505 Removes the virtual CPU cpuid leaf for the specified index … … 5512 5512 <param name="id" type="unsigned long" dir="in"> 5513 5513 <desc> 5514 C puidleaf index.5515 </desc> 5516 </param> 5517 </method> 5518 5519 <method name="removeAllC puIdLeafs" const="yes">5520 <desc> 5521 Removes all the virtual CPU cpuid lea fs5514 CPUID leaf index. 5515 </desc> 5516 </param> 5517 </method> 5518 5519 <method name="removeAllCPUIDLeaves" const="yes"> 5520 <desc> 5521 Removes all the virtual CPU cpuid leaves 5522 5522 </desc> 5523 5523 </method> … … 6092 6092 </method> 6093 6093 6094 <method name=" HotPlugCPU">6094 <method name="hotPlugCPU"> 6095 6095 <desc> 6096 6096 Plugs a CPU into the machine. … … 6103 6103 </method> 6104 6104 6105 <method name=" HotUnplugCPU">6105 <method name="hotUnplugCPU"> 6106 6106 <desc> 6107 6107 Removes a CPU from the machine. … … 6114 6114 </method> 6115 6115 6116 <method name=" GetCPUStatus">6116 <method name="getCPUStatus"> 6117 6117 <desc> 6118 6118 Plugs a CPU into the machine. … … 7684 7684 </method> 7685 7685 7686 <method name="getProcessorC puIdLeaf">7686 <method name="getProcessorCPUIDLeaf"> 7687 7687 <desc> 7688 7688 Returns the CPU cpuid information for the specified leaf. … … 7699 7699 <param name="leaf" type="unsigned long" dir="in"> 7700 7700 <desc> 7701 C puidleaf index (eax).7701 CPUID leaf index (eax). 7702 7702 </desc> 7703 7703 </param> 7704 7704 <param name="subLeaf" type="unsigned long" dir="in"> 7705 7705 <desc> 7706 C puidleaf sub index (ecx). This currently only applies to cache7706 CPUID leaf sub index (ecx). This currently only applies to cache 7707 7707 information on Intel CPUs. Use 0 if retriving values for 7708 <link to="IMachine::setC puIdLeaf"/>.7708 <link to="IMachine::setCPUIDLeaf"/>. 7709 7709 </desc> 7710 7710 </param> 7711 7711 <param name="valEax" type="unsigned long" dir="out"> 7712 7712 <desc> 7713 C puidleaf value for register eax.7713 CPUID leaf value for register eax. 7714 7714 </desc> 7715 7715 </param> 7716 7716 <param name="valEbx" type="unsigned long" dir="out"> 7717 7717 <desc> 7718 C puidleaf value for register ebx.7718 CPUID leaf value for register ebx. 7719 7719 </desc> 7720 7720 </param> 7721 7721 <param name="valEcx" type="unsigned long" dir="out"> 7722 7722 <desc> 7723 C puidleaf value for register ecx.7723 CPUID leaf value for register ecx. 7724 7724 </desc> 7725 7725 </param> 7726 7726 <param name="valEdx" type="unsigned long" dir="out"> 7727 7727 <desc> 7728 C puidleaf value for register edx.7728 CPUID leaf value for register edx. 7729 7729 </desc> 7730 7730 </param> … … 13372 13372 <interface 13373 13373 name="IStorageController" extends="$unknown" 13374 uuid=" 6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"13374 uuid="ce37b7a9-d895-4ee8-b9f8-9579bfc85813" 13375 13375 wsmap="managed" 13376 13376 > … … 13455 13455 </attribute> 13456 13456 13457 <method name=" GetIDEEmulationPort">13457 <method name="getIDEEmulationPort"> 13458 13458 <desc> 13459 13459 Gets the corresponding port number which is emulated as an IDE device. … … 13472 13472 </method> 13473 13473 13474 <method name=" SetIDEEmulationPort">13474 <method name="setIDEEmulationPort"> 13475 13475 <desc> 13476 13476 Sets the port number which is emulated as an IDE device. -
trunk/src/VBox/Main/include/HostImpl.h
r26044 r27537 74 74 STDMETHOD(GetProcessorDescription)(ULONG cpuId, BSTR *description); 75 75 STDMETHOD(GetProcessorFeature) (ProcessorFeature_T feature, BOOL *supported); 76 STDMETHOD(GetProcessorC puIdLeaf)(ULONG aCpuId, ULONG aLeaf, ULONG aSubLeaf, ULONG *aValEAX, ULONG *aValEBX, ULONG *aValECX, ULONG *aValEDX);76 STDMETHOD(GetProcessorCPUIDLeaf)(ULONG aCpuId, ULONG aLeaf, ULONG aSubLeaf, ULONG *aValEAX, ULONG *aValEBX, ULONG *aValECX, ULONG *aValEDX); 77 77 STDMETHOD(COMGETTER(MemorySize))(ULONG *size); 78 78 STDMETHOD(COMGETTER(MemoryAvailable))(ULONG *available); -
trunk/src/VBox/Main/include/MachineImpl.h
r27324 r27537 467 467 STDMETHOD(GetExtraData)(IN_BSTR aKey, BSTR *aValue); 468 468 STDMETHOD(SetExtraData)(IN_BSTR aKey, IN_BSTR aValue); 469 STDMETHOD(GetC puProperty)(CpuPropertyType_T property, BOOL *aVal);470 STDMETHOD(SetC puProperty)(CpuPropertyType_T property, BOOL aVal);471 STDMETHOD(GetC puIdLeaf)(ULONG id, ULONG *aValEax, ULONG *aValEbx, ULONG *aValEcx, ULONG *aValEdx);472 STDMETHOD(SetC puIdLeaf)(ULONG id, ULONG aValEax, ULONG aValEbx, ULONG aValEcx, ULONG aValEdx);473 STDMETHOD(RemoveC puIdLeaf)(ULONG id);474 STDMETHOD(RemoveAllC puIdLeafs)();469 STDMETHOD(GetCPUProperty)(CPUPropertyType_T property, BOOL *aVal); 470 STDMETHOD(SetCPUProperty)(CPUPropertyType_T property, BOOL aVal); 471 STDMETHOD(GetCPUIDLeaf)(ULONG id, ULONG *aValEax, ULONG *aValEbx, ULONG *aValEcx, ULONG *aValEdx); 472 STDMETHOD(SetCPUIDLeaf)(ULONG id, ULONG aValEax, ULONG aValEbx, ULONG aValEcx, ULONG aValEdx); 473 STDMETHOD(RemoveCPUIDLeaf)(ULONG id); 474 STDMETHOD(RemoveAllCPUIDLeaves)(); 475 475 STDMETHOD(GetHWVirtExProperty)(HWVirtExPropertyType_T property, BOOL *aVal); 476 476 STDMETHOD(SetHWVirtExProperty)(HWVirtExPropertyType_T property, BOOL aVal);
Note:
See TracChangeset
for help on using the changeset viewer.

