Changeset 24305 in vbox
- Timestamp:
- Nov 4, 2009 9:45:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r24143 r24305 71 71 MODIFYVM_VTXVPID, 72 72 MODIFYVM_CPUS, 73 MODIFYVM_CPUID, 73 74 MODIFYVM_MONITORCOUNT, 74 75 MODIFYVM_ACCELERATE3D, … … 143 144 { "--hwvirtex", MODIFYVM_HWVIRTEX, RTGETOPT_REQ_BOOL_ONOFF }, 144 145 { "--hwvirtexexcl", MODIFYVM_HWVIRTEXEXCLUSIVE, RTGETOPT_REQ_BOOL_ONOFF }, 146 { "--cpuid", MODIFYVM_CPUID, RTGETOPT_REQ_UINT32 | RTGETOPT_FLAG_HEX}, 145 147 { "--nestedpaging", MODIFYVM_NESTEDPAGING, RTGETOPT_REQ_BOOL_ONOFF }, 146 148 { "--vtxvpid", MODIFYVM_VTXVPID, RTGETOPT_REQ_BOOL_ONOFF }, … … 348 350 } 349 351 352 case MODIFYVM_CPUID: 353 { 354 uint32_t id = ValueUnion.u32; 355 uint32_t aValue[4]; 356 357 for (unsigned i = 0 ; i < 4 ; i++) 358 { 359 int vrc = RTGetOptFetchValue(&GetOptState, &ValueUnion, RTGETOPT_REQ_UINT32 | RTGETOPT_FLAG_HEX); 360 if (RT_FAILURE(vrc)) 361 return errorSyntax(USAGE_MODIFYVM, 362 "Missing or Invalid argument to '%s'", 363 GetOptState.pDef->pszLong); 364 aValue[i] = ValueUnion.u32; 365 } 366 CHECK_ERROR(machine, SetCpuIdLeaf(id, aValue[0], aValue[1], aValue[2], aValue[3])); 367 break; 368 } 369 350 370 case MODIFYVM_NESTEDPAGING: 351 371 {
Note:
See TracChangeset
for help on using the changeset viewer.