Changeset 58450 in vbox for trunk/src/VBox
- Timestamp:
- Oct 28, 2015 3:51:28 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r58437 r58450 349 349 } 350 350 351 static const char *paravirtProviderToString(ParavirtProvider_T provider, VMINFO_DETAILS details) 352 { 353 switch (provider) 354 { 355 case ParavirtProvider_None: 356 if (details == VMINFO_MACHINEREADABLE) 357 return "none"; 358 return "None"; 359 360 case ParavirtProvider_Default: 361 if (details == VMINFO_MACHINEREADABLE) 362 return "default"; 363 return "Default"; 364 365 case ParavirtProvider_Legacy: 366 if (details == VMINFO_MACHINEREADABLE) 367 return "legacy"; 368 return "Legacy"; 369 370 case ParavirtProvider_Minimal: 371 if (details == VMINFO_MACHINEREADABLE) 372 return "minimal"; 373 return "Minimal"; 374 375 case ParavirtProvider_HyperV: 376 if (details == VMINFO_MACHINEREADABLE) 377 return "hyperv"; 378 return "HyperV"; 379 380 case ParavirtProvider_KVM: 381 if (details == VMINFO_MACHINEREADABLE) 382 return "kvm"; 383 return "KVM"; 384 385 default: 386 if (details == VMINFO_MACHINEREADABLE) 387 return "unknown"; 388 return "Unknown"; 389 } 390 } 391 351 392 352 393 /* Disable global optimizations for MSC 8.0/64 to make it compile in reasonable … … 689 730 ParavirtProvider_T paravirtProvider; 690 731 CHECK_ERROR2I_RET(machine, COMGETTER(ParavirtProvider)(¶virtProvider), hrcCheck); 691 const char *pszParavirtProvider; 692 switch (paravirtProvider) 693 { 694 case ParavirtProvider_None: 695 if (details == VMINFO_MACHINEREADABLE) 696 pszParavirtProvider = "none"; 697 else 698 pszParavirtProvider = "None"; 699 break; 700 701 case ParavirtProvider_Default: 702 if (details == VMINFO_MACHINEREADABLE) 703 pszParavirtProvider = "default"; 704 else 705 pszParavirtProvider = "Default"; 706 break; 707 708 case ParavirtProvider_Legacy: 709 if (details == VMINFO_MACHINEREADABLE) 710 pszParavirtProvider = "legacy"; 711 else 712 pszParavirtProvider = "Legacy"; 713 break; 714 715 case ParavirtProvider_Minimal: 716 if (details == VMINFO_MACHINEREADABLE) 717 pszParavirtProvider = "minimal"; 718 else 719 pszParavirtProvider = "Minimal"; 720 break; 721 722 case ParavirtProvider_HyperV: 723 if (details == VMINFO_MACHINEREADABLE) 724 pszParavirtProvider = "hyperv"; 725 else 726 pszParavirtProvider = "HyperV"; 727 break; 728 729 case ParavirtProvider_KVM: 730 if (details == VMINFO_MACHINEREADABLE) 731 pszParavirtProvider = "kvm"; 732 else 733 pszParavirtProvider = "KVM"; 734 break; 735 736 default: 737 if (details == VMINFO_MACHINEREADABLE) 738 pszParavirtProvider = "unknown"; 739 else 740 pszParavirtProvider = "Unknown"; 741 } 732 const char *pszParavirtProvider = paravirtProviderToString(paravirtProvider, details); 742 733 if (details == VMINFO_MACHINEREADABLE) 743 734 RTPrintf("paravirtprovider=\"%s\"\n", pszParavirtProvider); 744 735 else 745 736 RTPrintf("Paravirt. Provider: %s\n", pszParavirtProvider); 737 738 ParavirtProvider_T effParavirtProvider; 739 CHECK_ERROR2I_RET(machine, COMGETTER(EffectiveParavirtProvider)(&effParavirtProvider), hrcCheck); 740 const char *pszEffParavirtProvider = paravirtProviderToString(effParavirtProvider, details); 741 if (details == VMINFO_MACHINEREADABLE) 742 RTPrintf("effparavirtprovider=\"%s\"\n", pszEffParavirtProvider); 743 else 744 RTPrintf("Effective Paravirt. Provider: %s\n", pszEffParavirtProvider); 746 745 747 746 Bstr paravirtDebug;
Note:
See TracChangeset
for help on using the changeset viewer.