From patchwork Mon Feb 4 13:44:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 10795697 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CEFCC922 for ; Mon, 4 Feb 2019 13:44:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC87C2B49A for ; Mon, 4 Feb 2019 13:44:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B0CFF2B4BA; Mon, 4 Feb 2019 13:44:33 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 908B92B49A for ; Mon, 4 Feb 2019 13:44:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731384AbfBDNob (ORCPT ); Mon, 4 Feb 2019 08:44:31 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:55762 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731380AbfBDNob (ORCPT ); Mon, 4 Feb 2019 08:44:31 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6B522A78; Mon, 4 Feb 2019 05:44:30 -0800 (PST) Received: from login9.euhpc.arm.com (login9.euhpc.arm.com [10.6.27.141]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5BF3C3F557; Mon, 4 Feb 2019 05:44:29 -0800 (PST) From: Alexandru Elisei To: kvm@vger.kernel.org Cc: drjones@redhat.com, kvmarm@lists.cs.columbia.edu, andre.przywara@arm.com, vladimir.murzin@arm.com Subject: [kvm-unit-tests PATCH v3 2/5] configure: arm/arm64: Add --vmm option with no effect Date: Mon, 4 Feb 2019 13:44:09 +0000 Message-Id: <20190204134412.47877-3-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190204134412.47877-1-alexandru.elisei@arm.com> References: <20190204134412.47877-1-alexandru.elisei@arm.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add configuration option --vmm to specify the virtual machine manager. Valid choices are 'qemu' and 'kvmtool', the default being 'qemu'. This option is only available for the arm and arm64 architectures and does nothing for now. Signed-off-by: Alexandru Elisei Reviewed-by: Andrew Jones --- I opted to keep the exclamation mark in the error messages because I think it makes them stand out. configure | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure b/configure index b4732c6c04e4..d1dd7d5830eb 100755 --- a/configure +++ b/configure @@ -16,6 +16,7 @@ endian="" pretty_print_stacks=yes environ_default=yes u32_long= +vmm="qemu" usage() { cat <<-EOF @@ -24,6 +25,8 @@ usage() { Options include: --arch=ARCH architecture to compile for ($arch) --processor=PROCESSOR processor to compile for ($arch) + --vmm=VMM virtual machine monitor to compile for (qemu + or kvmtool, default is qemu) (arm/arm64 only) --cross-prefix=PREFIX cross compiler prefix --cc=CC c compiler to use ($cc) --cxx=CXX c++ compiler to use ($cxx) @@ -56,6 +59,9 @@ while [[ "$1" = -* ]]; do --processor) processor="$arg" ;; + --vmm) + vmm="$arg" + ;; --cross-prefix) cross_prefix="$arg" ;; @@ -108,6 +114,10 @@ if [ "$arch" = "i386" ] || [ "$arch" = "x86_64" ]; then testdir=x86 elif [ "$arch" = "arm" ] || [ "$arch" = "arm64" ]; then testdir=arm + if [ "$vmm" != "qemu" ] && [ "$vmm" != "kvmtool" ]; then + echo '--vmm must be one of "qemu" or "kvmtool"!' + usage + fi elif [ "$arch" = "ppc64" ]; then testdir=powerpc firmware="$testdir/boot_rom.bin"