- Timestamp:
- Oct 9, 2010 7:11:35 AM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r32947 r33020 193 193 #endif 194 194 " [--firmware bios|efi|efi32|efi64]\n" 195 " [--chipset ich9|piix3]\n" 195 196 " [--bioslogofadein on|off]\n" 196 197 " [--bioslogofadeout on|off]\n" -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r32718 r33020 249 249 else 250 250 RTPrintf("HPET: %s\n", fHpetEnabled ? "on" : "off"); 251 252 ChipsetType_T chipsetType = ChipsetType_Null; 253 const char *pszChipsetType = NULL; 254 machine->COMGETTER(ChipsetType)(&chipsetType); 255 switch (chipsetType) 256 { 257 case ChipsetType_Null: 258 pszChipsetType = "invalid"; 259 break; 260 case ChipsetType_PIIX3: 261 pszChipsetType = "piix3"; 262 break; 263 case ChipsetType_ICH9: 264 pszChipsetType = "ich9"; 265 break; 266 default: 267 Assert(false); 268 pszChipsetType = "unknown"; 269 } 270 if (details == VMINFO_MACHINEREADABLE) 271 RTPrintf("chipset=\"%s\"\n", pszChipsetType); 272 else 273 RTPrintf("Chipset: %s\n", pszChipsetType); 274 275 FirmwareType_T firmwareType = FirmwareType_BIOS; 276 const char *pszFirmwareType = NULL; 277 machine->COMGETTER(FirmwareType)(&firmwareType); 278 switch (firmwareType) 279 { 280 case FirmwareType_BIOS: 281 pszFirmwareType = "BIOS"; 282 break; 283 case FirmwareType_EFI: 284 pszFirmwareType = "EFI"; 285 break; 286 case FirmwareType_EFI32: 287 pszFirmwareType = "EFI32"; 288 break; 289 case FirmwareType_EFI64: 290 pszFirmwareType = "EFI64"; 291 break; 292 case FirmwareType_EFIDUAL: 293 pszFirmwareType = "EFIDUAL"; 294 break; 295 default: 296 Assert(false); 297 pszFirmwareType = "unknown"; 298 } 299 if (details == VMINFO_MACHINEREADABLE) 300 RTPrintf("firmware=\"%s\"\n", pszFirmwareType); 301 else 302 RTPrintf("Firmware: %s\n", pszFirmwareType); 303 251 304 252 305 ULONG numCpus; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r32913 r33020 159 159 MODIFYVM_FAULT_TOLERANCE_PASSWORD, 160 160 MODIFYVM_FAULT_TOLERANCE_SYNC_INTERVAL, 161 MODIFYVM_CPU_EXECTUION_CAP 161 MODIFYVM_CPU_EXECTUION_CAP, 162 MODIFYVM_CHIPSET 162 163 }; 163 164 … … 275 276 { "--faulttolerancepassword", MODIFYVM_FAULT_TOLERANCE_PASSWORD, RTGETOPT_REQ_STRING }, 276 277 { "--faulttolerancesyncinterval", MODIFYVM_FAULT_TOLERANCE_SYNC_INTERVAL, RTGETOPT_REQ_UINT32 }, 278 { "--chipset", MODIFYVM_CHIPSET, RTGETOPT_REQ_STRING }, 277 279 }; 278 280 … … 2027 2029 } 2028 2030 2031 case MODIFYVM_CHIPSET: 2032 { 2033 if (!strcmp(ValueUnion.psz, "piix3")) 2034 { 2035 CHECK_ERROR(machine, COMSETTER(ChipsetType)(ChipsetType_PIIX3)); 2036 } 2037 else if (!strcmp(ValueUnion.psz, "ich9")) 2038 { 2039 CHECK_ERROR(machine, COMSETTER(ChipsetType)(ChipsetType_ICH9)); 2040 } 2041 else 2042 { 2043 errorArgument("Invalid --chipset argument '%s' (valid: piix3,ich9)", ValueUnion.psz); 2044 rc = E_FAIL; 2045 } 2046 break; 2047 } 2048 2029 2049 default: 2030 2050 {
Note:
See TracChangeset
for help on using the changeset viewer.