From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [kvm-unit-tests PATCH v2 6/5] x86/run: support accelerator controls Date: Fri, 30 Jun 2017 12:42:14 +0200 Message-ID: <5b88d828-ea64-5e28-a5bf-4156f2dc744c@redhat.com> References: <20170628200857.1718-6-rkrcmar@redhat.com> <20170629143215.13801-1-rkrcmar@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Drew Jones , Laurent Vivier , Thomas Huth , David Hildenbrand To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:52120 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752479AbdF3KmU (ORCPT ); Fri, 30 Jun 2017 06:42:20 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5B80C8553D for ; Fri, 30 Jun 2017 10:42:20 +0000 (UTC) In-Reply-To: <20170629143215.13801-1-rkrcmar@redhat.com> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: Applied both, thanks. Paolo On 29/06/2017 16:32, Radim Krčmář wrote: > 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} "$@" >