Make vmrun.sh passthrough -u and -w to bhybe

PR:		214273
Submitted by:	Martin Birgmeier <la5lbtyi@aon.at>
Approved by:	grehan
MFC after:	1 week
This commit is contained in:
Rodney W. Grimes 2017-03-05 05:02:13 +00:00
parent 793cc4b409
commit 9edf60b1ed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314694

View File

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