diff options
author | rgrimes <rgrimes@FreeBSD.org> | 2017-04-22 22:05:23 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 2017-04-22 22:05:23 +0000 |
commit | 0541fbfd4945a1e55d54c1329cc9f19c3ed9072f (patch) | |
tree | 00c344dd383e1f7c0741dfaea00174074e2a6cb1 | |
parent | f137013238434e9cb4ad1d7cd79892d5cf5f1c32 (diff) | |
download | FreeBSD-src-0541fbfd4945a1e55d54c1329cc9f19c3ed9072f.zip FreeBSD-src-0541fbfd4945a1e55d54c1329cc9f19c3ed9072f.tar.gz |
MFC: r314694
Make vmrun.sh passthrough -u and -w to bhybe
PR: 214273
Submitted by: Martin Birgmeier <la5lb...@aon.at>
Approved by: grehan (mentor)
-rwxr-xr-x | share/examples/bhyve/vmrun.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/share/examples/bhyve/vmrun.sh b/share/examples/bhyve/vmrun.sh index b2f2195..1fd8e36 100755 --- a/share/examples/bhyve/vmrun.sh +++ b/share/examples/bhyve/vmrun.sh @@ -65,6 +65,8 @@ usage() { echo " -m: memory size (default is ${DEFAULT_MEMSIZE})" echo " -p: pass-through a host PCI device at bus/slot/func (e.g. 10/0/0)" echo " -t: tap device for virtio-net (default is $DEFAULT_TAPDEV)" + echo " -u: RTC keeps UTC time" + echo " -w: ignore unimplemented MSRs" echo "" [ -n "$msg" ] && errmsg "$msg" exit 1 @@ -93,7 +95,7 @@ loader_opt="" bhyverun_opt="-H -A -P" pass_total=0 -while getopts ac:C:d:e:g:hH:iI:l:m:p:t: c ; do +while getopts ac:C:d:e:g:hH:iI:l:m:p:t:uw c ; do case $c in a) bhyverun_opt="${bhyverun_opt} -a" @@ -140,6 +142,12 @@ while getopts ac:C:d:e:g:hH:iI:l:m:p:t: c ; do eval "tap_dev${tap_total}=\"${OPTARG}\"" tap_total=$(($tap_total + 1)) ;; + u) + bhyverun_opt="${bhyverun_opt} -u" + ;; + w) + bhyverun_opt="${bhyverun_opt} -w" + ;; *) usage ;; |