From: Erik van der Kouwe Date: Sun, 22 Jun 2014 07:10:46 +0000 (-0700) Subject: LLVM clientctl: activate the KVM module only if available X-Git-Tag: v3.3.0~145 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=ca39637dccbf62dfce56d26568d1856a059cdb0e;p=minix.git LLVM clientctl: activate the KVM module only if available --- diff --git a/minix/llvm/clientctl b/minix/llvm/clientctl index d5cf4b764..e8921d633 100755 --- a/minix/llvm/clientctl +++ b/minix/llvm/clientctl @@ -13,8 +13,10 @@ case "$mode" in 'run') if which kvm > /dev/null; then hypervisor=kvm - else + elif [ -e /dev/kvm ]; then hypervisor="qemu-system-i386 --enable-kvm" + else + hypervisor=qemu-system-i386 fi (cd ../../../obj.i386/destdir.i386/multiboot && $hypervisor -nographic -kernel kernel -append "console=tty00 rootdevname=c0d0p1" -initrd "mod01_ds,mod02_rs,mod03_pm,mod04_sched,mod05_vfs,mod06_memory,mod07_tty,mod08_mfs,mod09_vm,mod10_pfs,mod11_init" -hda $IMAGE) ;;