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@xxxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html