All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: pbonzini@redhat.com
Cc: marc.zyngier@arm.com, christoffer.dall@linaro.org,
	drjones@redhat.com, kvm@vger.kernel.org,
	"Alex Bennée" <alex.bennee@linaro.org>
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	[thread overview]
Message-ID: <20170518160208.9674-3-alex.bennee@linaro.org> (raw)
In-Reply-To: <20170518160208.9674-1-alex.bennee@linaro.org>

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 <alex.bennee@linaro.org>
---
 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
-- 
2.13.0

  parent reply	other threads:[~2017-05-18 16:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18 16:02 [kvm-unit-tests PATCH v2 0/3] ARM debug register test Alex Bennée
2017-05-18 16:02 ` [kvm-unit-tests PATCH v2 1/3] sysregs: add __ACCESS_CP14 macro Alex Bennée
2017-05-22 17:27   ` Andrew Jones
2017-05-18 16:02 ` Alex Bennée [this message]
2017-05-18 16:03   ` [kvm-unit-tests PATCH v2 2/3] arm/run: ensure we use processor=host for kvm Paolo Bonzini
2017-05-19  6:29     ` Christoffer Dall
2017-05-19  8:11       ` Paolo Bonzini
2017-05-22 17:25   ` Andrew Jones
2017-05-18 16:02 ` [kvm-unit-tests PATCH v2 3/3] arm/debugtest: test access to the debug registers for guest Alex Bennée
2017-05-22 16:56   ` Radim Krčmář
2017-05-22 18:40     ` Alex Bennée
2017-05-22 17:22   ` Andrew Jones
2017-05-22 18:41     ` Alex Bennée
2017-05-23  9:41       ` Andrew Jones
2017-05-23  9:50         ` Andrew Jones
2017-05-25 15:32 ` [kvm-unit-tests PATCH v2 0/3] ARM debug register test Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170518160208.9674-3-alex.bennee@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=christoffer.dall@linaro.org \
    --cc=drjones@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=marc.zyngier@arm.com \
    --cc=pbonzini@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.