From patchwork Thu Jun 29 14:32:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= X-Patchwork-Id: 9817193 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 323DA602B1 for ; Thu, 29 Jun 2017 14:32:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 243431FE5F for ; Thu, 29 Jun 2017 14:32:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1768A28710; Thu, 29 Jun 2017 14:32:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,HK_RANDOM_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9E691FE5F for ; Thu, 29 Jun 2017 14:32:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753366AbdF2Ocz (ORCPT ); Thu, 29 Jun 2017 10:32:55 -0400 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) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BE4B5BCFFD Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=rkrcmar@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com BE4B5BCFFD Received: from potion (unknown [10.43.2.65]) by smtp.corp.redhat.com (Postfix) with SMTP id E72146046F; Thu, 29 Jun 2017 14:32:48 +0000 (UTC) Received: by potion (sSMTP sendmail emulation); Thu, 29 Jun 2017 16:32:48 +0200 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: kvm@vger.kernel.org Cc: Paolo Bonzini , Drew Jones , Laurent Vivier , Thomas Huth , David Hildenbrand 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> In-Reply-To: <20170628200857.1718-6-rkrcmar@redhat.com> References: <20170628200857.1718-6-rkrcmar@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 29 Jun 2017 14:32:53 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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} "$@"