Changeset 19377 in vbox
- Timestamp:
- May 5, 2009 1:46:25 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r19176 r19377 128 128 " [--nestedpaging on|off]\n" 129 129 " [--vtxvpid on|off]\n" 130 " [--cpus <number>]\n" 130 131 " [--monitorcount <number>]\n" 131 132 " [--accelerate3d <on|off>]\n" -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r19239 r19377 131 131 132 132 /** @todo the quoting is not yet implemented! */ 133 /** @todo error checking! */ 133 134 134 135 BOOL accessible = FALSE; … … 219 220 else 220 221 RTPrintf("VRAM size: %uMB\n", vramSize); 222 223 ULONG numCpus; 224 rc = machine->COMGETTER(CPUCount)(&numCpus); 225 if (details == VMINFO_MACHINEREADABLE) 226 RTPrintf("cpus=%u\n", numCpus); 227 else 228 RTPrintf("Number of CPUs: %u\n", numCpus); 221 229 222 230 ComPtr <IBIOSSettings> biosSettings; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r19239 r19377 66 66 char *vtxvpid = NULL; 67 67 char *pae = NULL; 68 uint32_t numCpus = UINT32_MAX; 68 69 char *ioapic = NULL; 69 70 uint32_t monitorcount = ~0; … … 221 222 pae = a->argv[i]; 222 223 } 224 else if (!strcmp(a->argv[i], "--cpus")) 225 { 226 if (a->argc <= i + 1) 227 return errorArgument("Missing argument to '%s'", a->argv[i]); 228 i++; 229 numCpus = RTStrToUInt32(a->argv[i]); 230 if (numCpus == UINT32_MAX) 231 return errorArgument("The number of cpus cannot be 0.", a->argv[i]); 232 } 223 233 else if ( !strcmp(a->argv[i], "--monitorcount") 224 234 || !strcmp(a->argv[i], "-monitorcount")) … … 991 1001 } 992 1002 } 1003 if (numCpus != UINT32_MAX) 1004 { 1005 CHECK_ERROR(machine, COMSETTER(CPUCount)(numCpus)); 1006 } 993 1007 if (monitorcount != ~0U) 994 1008 {
Note:
See TracChangeset
for help on using the changeset viewer.