Changeset 23750 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 14, 2009 9:26:48 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53476
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r23733 r23750 228 228 RTPrintf("Number of CPUs: %u\n", numCpus); 229 229 230 BOOL fSyntheticCpu; 231 machine->GetCpuProperty(CpuPropertyType_Synthetic, &fSyntheticCpu); 232 if (details == VMINFO_MACHINEREADABLE) 233 RTPrintf("synthcpu=\"%s\"\n", fSyntheticCpu ? "on" : "off"); 234 else 235 RTPrintf("Synthetic Cpu: %s\n", fSyntheticCpu ? "on" : "off"); 236 230 237 ComPtr <IBIOSSettings> biosSettings; 231 238 machine->COMGETTER(BIOSSettings)(biosSettings.asOutParam()); … … 330 337 331 338 BOOL PAEEnabled; 332 machine-> COMGETTER(PAEEnabled)(&PAEEnabled);339 machine->GetCpuProperty(CpuPropertyType_PAE, &PAEEnabled); 333 340 if (details == VMINFO_MACHINEREADABLE) 334 341 RTPrintf("pae=\"%s\"\n", PAEEnabled ? "on" : "off"); … … 358 365 359 366 BOOL HWVirtExNestedPagingEnabled; 360 machine->GetHWVirtExProperty(HWVirtExPropertyType_NestedPaging Enabled, &HWVirtExNestedPagingEnabled);367 machine->GetHWVirtExProperty(HWVirtExPropertyType_NestedPaging, &HWVirtExNestedPagingEnabled); 361 368 if (details == VMINFO_MACHINEREADABLE) 362 369 RTPrintf("nestedpaging=\"%s\"\n", HWVirtExNestedPagingEnabled ? "on" : "off"); … … 365 372 366 373 BOOL HWVirtExVPIDEnabled; 367 machine->GetHWVirtExProperty(HWVirtExPropertyType_VPID Enabled, &HWVirtExVPIDEnabled);374 machine->GetHWVirtExProperty(HWVirtExPropertyType_VPID, &HWVirtExVPIDEnabled); 368 375 if (details == VMINFO_MACHINEREADABLE) 369 376 RTPrintf("vtxvpid=\"%s\"\n", HWVirtExVPIDEnabled ? "on" : "off"); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r23738 r23750 65 65 MODIFYVMIOAPIC, 66 66 MODIFYVMPAE, 67 MODIFYVMSYNTHCPU, 67 68 MODIFYVMHWVIRTEX, 68 69 MODIFYVMHWVIRTEXEXCLUSIVE, … … 137 138 { "--ioapic", MODIFYVMIOAPIC, RTGETOPT_REQ_STRING }, 138 139 { "--pae", MODIFYVMPAE, RTGETOPT_REQ_STRING }, 140 { "--synthcpu", MODIFYVMSYNTHCPU, RTGETOPT_REQ_STRING }, 139 141 { "--hwvirtex", MODIFYVMHWVIRTEX, RTGETOPT_REQ_STRING }, 140 142 { "--hwvirtexexcl", MODIFYVMHWVIRTEXEXCLUSIVE, RTGETOPT_REQ_STRING }, … … 363 365 if (!strcmp(pValueUnion.psz, "on")) 364 366 { 365 CHECK_ERROR (machine, COMSETTER(PAEEnabled)(true));367 CHECK_ERROR (machine, SetCpuProperty(CpuPropertyType_PAE, true)); 366 368 } 367 369 else if (!strcmp(pValueUnion.psz, "off")) 368 370 { 369 CHECK_ERROR (machine, COMSETTER(PAEEnabled)(false));371 CHECK_ERROR (machine, SetCpuProperty(CpuPropertyType_PAE, false)); 370 372 } 371 373 else … … 378 380 } 379 381 382 case MODIFYVMSYNTHCPU: 383 { 384 if (pValueUnion.psz) 385 { 386 if (!strcmp(pValueUnion.psz, "on")) 387 { 388 CHECK_ERROR (machine, SetCpuProperty(CpuPropertyType_Synthetic, true)); 389 } 390 else if (!strcmp(pValueUnion.psz, "off")) 391 { 392 CHECK_ERROR (machine, SetCpuProperty(CpuPropertyType_Synthetic, false)); 393 } 394 else 395 { 396 errorArgument("Invalid --synthcpu argument '%s'", pValueUnion.psz); 397 rc = E_FAIL; 398 } 399 } 400 break; 401 } 402 380 403 case MODIFYVMHWVIRTEX: 381 404 { … … 426 449 if (!strcmp(pValueUnion.psz, "on")) 427 450 { 428 CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_NestedPaging Enabled, TRUE));451 CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_NestedPaging, TRUE)); 429 452 } 430 453 else if (!strcmp(pValueUnion.psz, "off")) 431 454 { 432 CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_NestedPaging Enabled, FALSE));455 CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_NestedPaging, FALSE)); 433 456 } 434 457 else … … 447 470 if (!strcmp(pValueUnion.psz, "on")) 448 471 { 449 CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_VPID Enabled, TRUE));472 CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_VPID, TRUE)); 450 473 } 451 474 else if (!strcmp(pValueUnion.psz, "off")) 452 475 { 453 CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_VPID Enabled, FALSE));476 CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_VPID, FALSE)); 454 477 } 455 478 else -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r23733 r23750 1617 1617 1618 1618 /* PAE/NX */ 1619 QString pae = aMachine.Get PAEEnabled()1619 QString pae = aMachine.GetCpuProperty(KCpuPropertyType_PAE) 1620 1620 ? tr ("Enabled", "details report (PAE/NX)") 1621 1621 : tr ("Disabled", "details report (PAE/NX)"); … … 1628 1628 1629 1629 /* Nested Paging */ 1630 QString nested = aMachine.GetHWVirtExProperty(KHWVirtExPropertyType_NestedPaging Enabled)1630 QString nested = aMachine.GetHWVirtExProperty(KHWVirtExPropertyType_NestedPaging) 1631 1631 ? tr ("Enabled", "details report (Nested Paging)") 1632 1632 : tr ("Disabled", "details report (Nested Paging)"); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsSystem.cpp
r23733 r23750 174 174 .GetProcessorFeature (KProcessorFeature_PAE); 175 175 mCbPae->setEnabled (fPAESupported); 176 mCbPae->setChecked (aMachine.Get PAEEnabled());176 mCbPae->setChecked (aMachine.GetCpuProperty(KCpuPropertyType_PAE)); 177 177 178 178 /* VT-x/AMD-V */ … … 183 183 mCbNestedPaging->setEnabled (fVTxAMDVSupported && 184 184 aMachine.GetHWVirtExProperty(KHWVirtExPropertyType_Enabled)); 185 mCbNestedPaging->setChecked (aMachine.GetHWVirtExProperty(KHWVirtExPropertyType_NestedPaging Enabled));185 mCbNestedPaging->setChecked (aMachine.GetHWVirtExProperty(KHWVirtExPropertyType_NestedPaging)); 186 186 187 187 if (mValidator) … … 228 228 229 229 /* PAE/NX */ 230 mMachine.Set PAEEnabled (mCbPae->isChecked());230 mMachine.SetCpuProperty(KCpuPropertyType_PAE, mCbPae->isChecked()); 231 231 232 232 /* VT-x/AMD-V */ … … 235 235 236 236 /* Nested Paging */ 237 mMachine.SetHWVirtExProperty(KHWVirtExPropertyType_NestedPaging Enabled, mCbNestedPaging->isChecked());237 mMachine.SetHWVirtExProperty(KHWVirtExPropertyType_NestedPaging, mCbNestedPaging->isChecked()); 238 238 } 239 239
Note:
See TracChangeset
for help on using the changeset viewer.