Added speculation control to modifyvm command

This commit is contained in:
2018-05-27 17:56:19 +02:00
parent 11a0844c4d
commit e90270e8ee
2 changed files with 5 additions and 4 deletions

View File

@@ -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:

View File

@@ -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}) )
;;