moving to f14/kvm - on some h/w, create /root/no-kvm to run plain qemu instead
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 11 Jan 2011 10:11:37 +0000 (11:11 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 11 Jan 2011 10:11:37 +0000 (11:11 +0100)
system/template-qemu/qemu-kill-node
system/template-qemu/qemu-start-node

index 6fdb161..2d84607 100755 (executable)
@@ -9,7 +9,7 @@ THISNODE=$(basename $(pwd -P) | sed -e s,qemu-,,)
 cd ..
 
 # somehow qemu-system-x86_64 show up in pgrep as qemu-system-x86
-COMMANDS_TO_KILL="qemu qemu-system-x86_64 qemu-system-x86"
+COMMANDS_TO_KILL="qemu qemu-system-x86_64 qemu-system-x86 qemu-kvm"
 
 function usage () {
     echo "Usage: $COMMAND -l"
index 55484f1..46279f8 100755 (executable)
@@ -46,7 +46,9 @@ function is_64bits () {
 
 # the launcher, depending on target arch
 # make sure to check qemu-kill-node for consistency
-has_kvm=$(type -p qemu-kvm)
+
+# use kvm if available, but unless we find /root/no-kvm as this is broken on some h/w
+[ -f /root/no-kvm ] || has_kvm=$(type -p qemu-kvm)
 if [ -n "has_kvm" ] ; then
     QEMU="qemu-kvm" ; ARGS=""
 else