From e90270e8ee5f80da4aa4aac4c51dce048c425bd2 Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 27 May 2018 17:56:19 +0200 Subject: [PATCH] Added speculation control to modifyvm command --- README.rst | 2 +- VBoxManage | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 2575db7..6a4c795 100644 --- a/README.rst +++ b/README.rst @@ -6,7 +6,7 @@ script. However, in some point of time I've decided to rewrite it almost from scratch. Current version of script was written and tested against VBoxManage in version -5.1.32, and supports all commands (in some extent ;)). +5.1.36, and supports all commands (in some extent ;)). Unlike other attempts, I've tried to make the script context aware. See the simple session with the VBoxManage command below, to have an idea how it works: diff --git a/VBoxManage b/VBoxManage index 0bd5469..bf30356 100644 --- a/VBoxManage +++ b/VBoxManage @@ -4,7 +4,7 @@ # URL: https://bitbucket.org/gryf/vboxmanage-bash-completion # URL: https://github.com/gryf/vboxmanage-bash-completion # License: 3-clause BSD-style license (see LICENSE file) -# Version: 5.1.32 +# Version: 5.1.36 _VBoxManage() { local cur prev opts cmd subcommand tmp items name index result @@ -1592,7 +1592,8 @@ _VBoxManage() { --videocapmaxtime --videocapmaxsize --videocapopts --defaultfrontend --cpuid-portability-level --paravirtprovider --audiocodec --usbxhci --usbrename --apic --x2apic --paravirtdebug --cpu-profile - --biosapic --videocapopts --ibpb-on-vm-entry --ibpb-on-vm-exit) + --biosapic --videocapopts --ibpb-on-vm-entry --ibpb-on-vm-exit + --spec-ctrl) if [[ ${prev} == ${cmd} ]]; then _vms_comp vms @@ -1632,7 +1633,7 @@ _VBoxManage() { --usbehci|--teleporter|--tracing-enabled|\ --tracing-allow-vm-access|--usbcardreader|\ --autostart-enabled|--videocap|--usbxhci|--apic|--x2apic|\ - --ibpb-on-vm-entry|--ibpb-on-vm-exit) + --ibpb-on-vm-entry|--ibpb-on-vm-exit|--spec-ctrl) COMPREPLY=( $(compgen -W "on off" -- ${cur}) ) ;;