From 280f8df59eba30ac4c0907efbdc86891139aab57 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 22 Aug 2013 15:41:54 +0100 Subject: [PATCH 2/4] qemu: Pass -machine accel=kvm:tcg option on qemu command line. This makes qemu try to use KVM, and fall back cleanly to TCG if hardware accelerated virt is not available. --- qemu-sanity-check.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu-sanity-check.in b/qemu-sanity-check.in index 4a13b07..24ce8ef 100644 --- a/qemu-sanity-check.in +++ b/qemu-sanity-check.in @@ -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" -- 1.8.3.1