Changeset 103085 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Jan 26, 2024 4:17:43 PM (13 months ago)
- svn:sync-xref-src-repo-rev:
- 161331
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r101418 r103085 242 242 MODIFYVM_DEFAULTFRONTEND, 243 243 MODIFYVM_VMPROC_PRIORITY, 244 MODIFYVM_VMEXEC_ENGINE, 244 245 MODIFYVM_TESTING_ENABLED, 245 246 MODIFYVM_TESTING_MMIO, … … 477 478 OPT2("--default-frontend", "--defaultfrontend", MODIFYVM_DEFAULTFRONTEND, RTGETOPT_REQ_STRING), 478 479 OPT1("--vm-process-priority", MODIFYVM_VMPROC_PRIORITY, RTGETOPT_REQ_STRING), 480 OPT1("--vm-execution-engine", MODIFYVM_VMEXEC_ENGINE, RTGETOPT_REQ_STRING), 479 481 OPT1("--testing-enabled", MODIFYVM_TESTING_ENABLED, RTGETOPT_REQ_BOOL_ONOFF), 480 482 OPT1("--testing-mmio", MODIFYVM_TESTING_MMIO, RTGETOPT_REQ_BOOL_ONOFF), … … 674 676 } 675 677 678 static VMExecutionEngine_T nameToVMExecEngine(const char *pszName) 679 { 680 if (!RTStrICmp(pszName, "default")) 681 return VMExecutionEngine_Default; 682 if ( !RTStrICmp(pszName, "hwvirt") 683 || !RTStrICmp(pszName, "hm")) 684 return VMExecutionEngine_HwVirt; 685 if ( !RTStrICmp(pszName, "nem") 686 || !RTStrICmp(pszName, "native-api")) 687 return VMExecutionEngine_NativeApi; 688 if (!RTStrICmp(pszName, "interpreter")) 689 return VMExecutionEngine_Interpreter; 690 if ( !RTStrICmp(pszName, "recompiler")) 691 return VMExecutionEngine_Recompiler; 692 693 return VMExecutionEngine_NotSet; 694 } 695 676 696 /** 677 697 * Handles the x86-specific modifyvm options. … … 3613 3633 } 3614 3634 3635 case MODIFYVM_VMEXEC_ENGINE: 3636 { 3637 VMExecutionEngine_T enmExecEngine = nameToVMExecEngine(ValueUnion.psz); 3638 if (enmExecEngine == VMExecutionEngine_NotSet) 3639 { 3640 errorArgument(ModifyVM::tr("Invalid --vm-execution-engine '%s'"), ValueUnion.psz); 3641 hrc = E_FAIL; 3642 } 3643 else 3644 { 3645 CHECK_ERROR(sessionMachine, COMSETTER(VMExecutionEngine)(enmExecEngine)); 3646 } 3647 break; 3648 } 3649 3615 3650 case MODIFYVM_TESTING_ENABLED: 3616 3651 hrc = setExtraData(sessionMachine, "VBoxInternal/Devices/VMMDev/0/Config/TestingEnabled", ValueUnion.f ? "1" : "");
Note:
See TracChangeset
for help on using the changeset viewer.