Author: rgrimes
Date: Sat Apr 22 22:05:23 2017
New Revision: 317303
URL: https://svnweb.freebsd.org/changeset/base/317303

Log:
  MFC: r314694
  
    Make vmrun.sh passthrough -u and -w to bhybe
  
  PR:           214273
  Submitted by: Martin Birgmeier <la5lb...@aon.at>
  Approved by:  grehan (mentor)

Modified:
  stable/10/share/examples/bhyve/vmrun.sh
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/11/share/examples/bhyve/vmrun.sh
Directory Properties:
  stable/11/   (props changed)

Modified: stable/10/share/examples/bhyve/vmrun.sh
==============================================================================
--- stable/10/share/examples/bhyve/vmrun.sh     Sat Apr 22 21:57:26 2017        
(r317302)
+++ stable/10/share/examples/bhyve/vmrun.sh     Sat Apr 22 22:05:23 2017        
(r317303)
@@ -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: 
                eval "tap_dev${tap_total}=\"${OPTARG}\""
                tap_total=$(($tap_total + 1))
                ;;
+       u)      
+               bhyverun_opt="${bhyverun_opt} -u"
+               ;;
+       w)
+               bhyverun_opt="${bhyverun_opt} -w"
+               ;;
        *)
                usage
                ;;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to