From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [kvm-unit-tests PATCH v2 6/5] x86/run: support accelerator controls Date: Thu, 29 Jun 2017 16:32:15 +0200 Message-ID: <20170629143215.13801-1-rkrcmar@redhat.com> References: <20170628200857.1718-6-rkrcmar@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Paolo Bonzini , Drew Jones , Laurent Vivier , Thomas Huth , David Hildenbrand To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:35946 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751974AbdF2Ocy (ORCPT ); Thu, 29 Jun 2017 10:32:54 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BE4B5BCFFD for ; Thu, 29 Jun 2017 14:32:53 +0000 (UTC) In-Reply-To: <20170628200857.1718-6-rkrcmar@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: It's easy to support and we do have the option for other architectures. Signed-off-by: Radim Krčmář --- x86/run | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/x86/run b/x86/run index f319b68ef693..e59c6c590a20 100755 --- a/x86/run +++ b/x86/run @@ -9,6 +9,9 @@ if [ -z "$STANDALONE" ]; then source scripts/arch-run.bash fi +ACCEL=$(get_qemu_accelerator) || + exit $? + qemu=$(search_qemu_binary) || exit $? @@ -34,8 +37,8 @@ else pc_testdev="-device testdev,chardev=testlog -chardev file,id=testlog,path=msr.out" fi -command="${qemu} -nodefaults -enable-kvm $pc_testdev -vnc none -serial stdio $pci_testdev $hyperv_testdev" -command+=" -kernel" +command="${qemu} -nodefaults $pc_testdev -vnc none -serial stdio $pci_testdev $hyperv_testdev" +command+=" -machine accel=$ACCEL -kernel" command="$(timeout_cmd) $command" run_qemu ${command} "$@" -- 2.13.2