kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm/run: don't enable KVM if system can't do it
@ 2015-07-02 11:05 Alex Bennée
  2015-07-02 11:51 ` Andrew Jones
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Bennée @ 2015-07-02 11:05 UTC (permalink / raw)
  To: kvm; +Cc: drjones, mttcg, mark.burton, fred.konrad, Alex Bennée

As ARM (and no doubt other systems) can also run tests in pure TCG mode
we might as well not bother enabling accel=kvm if we aren't on a real
ARM based system. This prevents us seeing ugly warning messages when
testing TCG.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 arm/run | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/arm/run b/arm/run
index 662a856..2bdb4be 100755
--- a/arm/run
+++ b/arm/run
@@ -33,7 +33,13 @@ if $qemu $M -chardev testdev,id=id -initrd . 2>&1 \
 	exit 2
 fi
 
-M='-machine virt,accel=kvm:tcg'
+host=`uname -m | sed -e 's/arm.*/arm/'`
+if [ "${host}" = "arm" ] || [ "${host}" = "aarch64" ]; then
+    M='-machine virt,accel=kvm:tcg'
+else
+    M='-machine virt,accel=tcg'
+fi
+
 chr_testdev='-device virtio-serial-device'
 chr_testdev+=' -device virtconsole,chardev=ctd -chardev testdev,id=ctd'
 
-- 
2.4.5


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-07-03 12:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02 11:05 [PATCH] arm/run: don't enable KVM if system can't do it Alex Bennée
2015-07-02 11:51 ` Andrew Jones
2015-07-02 13:17   ` Alex Bennée
2015-07-02 13:30     ` Andrew Jones
2015-07-02 13:45   ` Paolo Bonzini
2015-07-02 13:49     ` Andrew Jones
2015-07-03 12:24       ` Alex Bennée
2015-07-03 12:29         ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).