qemu: Pass -machine accel=kvm:tcg option on qemu command line.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 22 Aug 2013 14:41:54 +0000 (15:41 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 22 Aug 2013 14:59:57 +0000 (15:59 +0100)
This makes qemu try to use KVM, and fall back cleanly to TCG if
hardware accelerated virt is not available.

qemu-sanity-check.in

index 4a13b07..24ce8ef 100644 (file)
@@ -136,6 +136,8 @@ argv[$((i++))]="$qemu"
 argv[$((i++))]="-nographic"
 argv[$((i++))]="-nodefconfig"
 argv[$((i++))]="-nodefaults"
+argv[$((i++))]="-machine"
+argv[$((i++))]="accel=kvm:tcg"
 argv[$((i++))]="-no-reboot"
 argv[$((i++))]="-serial"
 argv[$((i++))]="file:$test_output"