VirtualBox

Ignore:
Timestamp:
Feb 22, 2018 3:38:35 PM (7 years ago)
Author:
vboxsync
Message:

Added speculation control settings to API, refined implementation.

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r70766 r71108  
    514514                     "                            [--ibpb-on-vm-exit on|off]\n"
    515515                     "                            [--ibpb-on-vm-entry on|off]\n"
     516                     "                            [--spec-ctrl on|off]\n"
    516517                     "                            [--nested-hw-virt on|off]\n"
    517518                     "                            [--cpu-profile \"host|Intel 80[86|286|386]\"]\n"
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r70712 r71108  
    7777    MODIFYVM_IBPB_ON_VM_EXIT,
    7878    MODIFYVM_IBPB_ON_VM_ENTRY,
     79    MODIFYVM_SPEC_CTRL,
    7980    MODIFYVM_NESTED_HW_VIRT,
    8081    MODIFYVM_CPUS,
     
    260261    { "--ibpb-on-vm-exit",          MODIFYVM_IBPB_ON_VM_EXIT,           RTGETOPT_REQ_BOOL_ONOFF },
    261262    { "--ibpb-on-vm-entry",         MODIFYVM_IBPB_ON_VM_ENTRY,          RTGETOPT_REQ_BOOL_ONOFF },
    262     { "--nested-hw-virt",           MODIFYVM_NESTED_HW_VIRT,             RTGETOPT_REQ_BOOL_ONOFF },
     263    { "--spec-ctrl",                MODIFYVM_SPEC_CTRL,                 RTGETOPT_REQ_BOOL_ONOFF },
     264    { "--nested-hw-virt",           MODIFYVM_NESTED_HW_VIRT,            RTGETOPT_REQ_BOOL_ONOFF },
    263265    { "--cpuid-set",                MODIFYVM_SETCPUID,                  RTGETOPT_REQ_UINT32_OPTIONAL_PAIR | RTGETOPT_FLAG_HEX },
    264266    { "--cpuid-remove",             MODIFYVM_DELCPUID,                  RTGETOPT_REQ_UINT32_OPTIONAL_PAIR | RTGETOPT_FLAG_HEX },
     
    808810                break;
    809811
     812            case MODIFYVM_SPEC_CTRL:
     813                CHECK_ERROR(sessionMachine, SetCPUProperty(CPUPropertyType_SpecCtrl, ValueUnion.f));
     814                break;
     815
    810816            case MODIFYVM_NESTED_HW_VIRT:
    811817                CHECK_ERROR(sessionMachine, SetCPUProperty(CPUPropertyType_HWVirt, ValueUnion.f));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette