From patchwork Thu May 18 16:02:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 9734721 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 5E3E56022E for ; Thu, 18 May 2017 16:02:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 421BF28304 for ; Thu, 18 May 2017 16:02:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36C4C284DB; Thu, 18 May 2017 16:02:29 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 BDB9428304 for ; Thu, 18 May 2017 16:02:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932241AbdERQCU (ORCPT ); Thu, 18 May 2017 12:02:20 -0400 Received: from mail-wr0-f181.google.com ([209.85.128.181]:36337 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932150AbdERQCR (ORCPT ); Thu, 18 May 2017 12:02:17 -0400 Received: by mail-wr0-f181.google.com with SMTP id l50so38929153wrc.3 for ; Thu, 18 May 2017 09:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=V3xazzIwZyUDVTeqz/0bDFUz6Jhb8/D38z34+nm3PFg=; b=Y/fia1b5CGVZ1UvwuAJeAmbaylzvm4NzQ0QXY9aTcFoY7vGWQbyzVEBkmNgYq05Hyu guKV4Jpf/wcuv8lEqd1qdsZtUGM8s3hw1dPidSL67OdkSHEzOZmZpfAiN1gg9BPXIrkf mypioiDAawFGU0ZpIq6WVRf/bdYKEX58i2jCQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=V3xazzIwZyUDVTeqz/0bDFUz6Jhb8/D38z34+nm3PFg=; b=K+Nw5vpP4XdofQij4J6J8YBY2wT5G2j4pZmilu74Q4YxL+USPSK64gpgoBT+sn4kRH lJttx3R4w5eFfE9kOoBl824KI/qstu5HP5QNb/F/62ezhgXwJmUarNnJuVeVowWsJ6vc ePkmgcrL8NvR68dnhc9cYouoVFkZXK5scVo3AucimkSHKdW6yQovoif8/h2d/gwfITxr QP92+EhaHeKqveIWwLe0KWXnrEzWcSqXuAbN9RQBwHF0N+ecYYy/3Kxchr7Tbw7fegdc MF9bONbwvTAELJNzS4BTVodXz8ubDlnpM5Gw4qMrzq+kVRWi3QTUlXx1A4ZUVsErAcqB f9qg== X-Gm-Message-State: AODbwcBU2wjMDqVVpgld3qvWd8PrndBUCHLsGr/rSNFzr3tSYzBkW8rx HOKS8986VQ8al+VZ X-Received: by 10.223.152.175 with SMTP id w44mr3237055wrb.122.1495123334636; Thu, 18 May 2017 09:02:14 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c34sm6228602wrc.7.2017.05.18.09.02.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 09:02:11 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id AD82B3E0503; Thu, 18 May 2017 17:02:08 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: pbonzini@redhat.com Cc: marc.zyngier@arm.com, christoffer.dall@linaro.org, drjones@redhat.com, kvm@vger.kernel.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [kvm-unit-tests PATCH v2 2/3] arm/run: ensure we use processor=host for kvm Date: Thu, 18 May 2017 17:02:07 +0100 Message-Id: <20170518160208.9674-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170518160208.9674-1-alex.bennee@linaro.org> References: <20170518160208.9674-1-alex.bennee@linaro.org> MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The configure script will happily default to cortex-a15 even when running on a cortex-a7. This runs into problems when running KVM on common dev boards as we should be using the "host" processor. Signed-off-by: Alex Bennée Reviewed-by: Andrew Jones --- arm/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arm/run b/arm/run index 700205b..f73593b 100755 --- a/arm/run +++ b/arm/run @@ -44,9 +44,9 @@ if [ "$ACCEL" = "kvm" ]; then if $qemu $M,\? 2>&1 | grep gic-version > /dev/null; then M+=',gic-version=host' fi - if [ "$HOST" = "aarch64" ]; then + if [ "$HOST" = "aarch64" ] || [ "$HOST" = "arm" ]; then processor="host" - if [ "$ARCH" = "arm" ]; then + if [ "$ARCH" = "arm" ] && [ "$HOST" = "aarch64" ]; then processor+=",aarch64=off" fi fi