From patchwork Tue Mar 25 16:00:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 14029232 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CC0E18DB0C for ; Tue, 25 Mar 2025 16:07:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742918873; cv=none; b=icphnNYgi4XBJpxNMeStD51bJ5qIvBNQ8JlIqZQXazVC+2XubupizW2RJUWyPKiyb2u/ld+ofNl68wR2DHW4ly1Afv0CyaaY998jSpwmbT7GCPURgAiGcv77esmH2qXVMFHPEOfZ0e7YbPAC2rBaPkFU8vVUWwPTXzHX+hBk9vI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742918873; c=relaxed/simple; bh=Mjz+dmxCYSCza0clR0zsI/0WXyyGJEvEQrlUQgo2L9E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ufy4pt7R7ElPtKIb/jHPFDBDLIgwjXVgIdRkJC6Y4dbrNu3G5bZMtFGSoUezgAkQNpE+FcC5W4hBi7i0MgNU2Aj32NEAMtoijyNofRxIkxLO2N6vTilRFFn8F5hJ9WxNSZtjeIo5LGcHn60rDe6m1JEbMRAole4lPiC4ur7nMqQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=kIjY3phS; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kIjY3phS" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-43cf257158fso39477735e9.2 for ; Tue, 25 Mar 2025 09:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742918870; x=1743523670; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fK2tkGsZN3Ahq6Hp1U78FfDDer2UDSH1+xmbDUmwofs=; b=kIjY3phSb4UDIRQHWp0eof4jYXqbKIFufMyjpSR5+cn0VnRbSF/ysAp5tVe8Gx9N7j XrfA+3W3jfplt4pUjdS0O2FBhFJuCP6qquo8/c7K61Q94V/Eq6WEbI0zsN/cizFw+qGY qQEPB6SkW4T7vrWBWsPCoK22ll37+kc9GMmBPurjBQwEwVHqj4MG7nwxzRnDn4mmxB93 RVVrjmOcvWU8DfQtn5vXPymgxn5/MbP+0E/XNavRAUpZJxS9endkhO7URABrNS/f00cP Q4hXppgYX7pl2KA09avAkJqciLdVZOWUfpOtR1aU2eFSySqKZzuXOpvCoaph/zDM5RJ/ hwgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742918870; x=1743523670; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fK2tkGsZN3Ahq6Hp1U78FfDDer2UDSH1+xmbDUmwofs=; b=qG8wj745fp8I2KOrfi8QIBPBBGAnmgOEMF7dWyThbhpqJJufnCeNmnaYEMtI8j6B8p wR8mvco3i16rMJ6swg3GuoE5UsCi6SxRrekk6+f2opToj9utdPp6tMKpo78JpM1wUmbl sja0d5zQfSSmNU8MV5VvQxSqSfthokCpEL8AYtsTODdbkGweH3+XnPqxhVJeP7Nz3c6c XYv0seRa5Lz1GXEwUQ5caJ1XOx5hdLa/b4MkhC6hjQlaUk5q4HapCZMp6Dp7ceqOpNjH HXiv98yEUYYPcVxyA3b7biMBzLeZbmKHhgBcHdT/7ecYvnvmtzeZ7i8l5KMm9EkU6Y4k dX+A== X-Forwarded-Encrypted: i=1; AJvYcCUsC+nWfN7rtwwt9liV0VKTZvX/UjewoZ4Wc8z1vQKRPxZX0qi/PR+sGO4jS749ySyUX0M=@vger.kernel.org X-Gm-Message-State: AOJu0YwxbWC/86jJvW2QrnTImEo1fh4Ltd7KypvLeJxdfIEPk6vsMig+ /XZdNPKKLFiGDRdpDLyMFnay7G6aEQhCnZYjjdK45Jnf4gAVpYpA34BHJyFeWL4= X-Gm-Gg: ASbGnctWBhvF6pPhqm/pG54MHyUbWNViceUwgCEiZUyUaS+B2V0Tu5MLgBMJCW+7mDl LJ9IZivmdV4nFVPHsioILsd29Yk7ybVYj9lj0+oX1vMdE8gzUOUHsulf2/icPD6K1lbnkVpEwoI 3GLbWr9dSCWOohBgN+aWf4sxfUH/Jy+llA2SQE4PM6t5QZwEwqdBo4yqXpfoFheYwKb6XDcHTBL EWnBLyfzm7/KuJzIdxo4Fzl3Zwf+29j5sfvZr8qkmPI64+mLf6ki8cZAfo9n2lGQE2viXpPRkJv yuNBcbvkA9N8dLYa1eE/WPpTH+zaoq3b62oaeDjbRIVT+eSPpgwVd5z8luJy8MCee/FzcB42lA= = X-Google-Smtp-Source: AGHT+IGMPJ/vzfbmk0M4EXxA8yEhXdjHJu8uBAqrg18jftKydcKcsI8JHQeO/UcY0KzF+hRvMYRRpA== X-Received: by 2002:a05:600c:1e8d:b0:43d:a90:9f1 with SMTP id 5b1f17b1804b1-43d509e64ccmr178534705e9.6.1742918870382; Tue, 25 Mar 2025 09:07:50 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d43f43cbasm203972195e9.9.2025.03.25.09.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Mar 2025 09:07:50 -0700 (PDT) From: Jean-Philippe Brucker To: andrew.jones@linux.dev, alexandru.elisei@arm.com Cc: eric.auger@redhat.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, vladimir.murzin@arm.com, Jean-Philippe Brucker Subject: [kvm-unit-tests PATCH v3 1/5] configure: arm64: Don't display 'aarch64' as the default architecture Date: Tue, 25 Mar 2025 16:00:29 +0000 Message-ID: <20250325160031.2390504-4-jean-philippe@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250325160031.2390504-3-jean-philippe@linaro.org> References: <20250325160031.2390504-3-jean-philippe@linaro.org> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Alexandru Elisei --arch=aarch64, intentional or not, has been supported since the initial arm64 support, commit 39ac3f8494be ("arm64: initial drop"). However, "aarch64" does not show up in the list of supported architectures, but it's displayed as the default architecture if doing ./configure --help on an arm64 machine. Keep everything consistent and make sure that the default value for $arch is "arm64", but still allow --arch=aarch64, in case they are users that use this configuration for kvm-unit-tests. The help text for --arch changes from: --arch=ARCH architecture to compile for (aarch64). ARCH can be one of: arm, arm64, i386, ppc64, riscv32, riscv64, s390x, x86_64 to: --arch=ARCH architecture to compile for (arm64). ARCH can be one of: arm, arm64, i386, ppc64, riscv32, riscv64, s390x, x86_64 Signed-off-by: Alexandru Elisei Signed-off-by: Jean-Philippe Brucker Reviewed-by: Alexandru Elisei --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 52904d3a..010c68ff 100755 --- a/configure +++ b/configure @@ -43,6 +43,7 @@ else fi usage() { + [ "$arch" = "aarch64" ] && arch="arm64" cat <<-EOF Usage: $0 [options] From patchwork Tue Mar 25 16:00:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 14029233 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C629F1990AB for ; Tue, 25 Mar 2025 16:07:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742918874; cv=none; b=s8/mc0Zp9LX6M5egfV/PkkKcPcFA7H1yLMUUak+1qH/0iecj4TfB2EX/PQ4moXCl0MKW0F8j5XNPJGOiipMqSaCPH50Km00xAwf7Hr9hwxvxLAyiyl41y6vqJcQ9fYB258ylVFW8+Pyfag5LKteeUX0M2DsIDw69SZ4h5mi8EmY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742918874; c=relaxed/simple; bh=pCZd7GShmFREJQXP8FWM/PwyLDPr3IHAugWyScPUO4s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dM89uAuckpb0vB1q+k+tQNss2bTEIhrAsJ9UqpUJJfv1ZLKpVnbgK6Sm297TXCK+g3w+PZB7BOICj1QbzKXt42pzVB0tf5r6CpIH158lAzR9H6LneDeXNvYoiYIXga8mYVo/OI+yj+3FE90nWWZNujYShpRgcFQPcUTNlEvxF+w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=d0wl29QB; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="d0wl29QB" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-3913d45a148so4720767f8f.3 for ; Tue, 25 Mar 2025 09:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742918871; x=1743523671; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Rb9ebUJ9N7Jt+0/wSlKeZDJqEG8Zo62aWudcvmr0rRI=; b=d0wl29QBY1vQMsXf5+HCvxs7+PQsym8spw52MIdCseoviHusmueYGldLtykHsMVa80 Sv7QHQ6G22UTN8KmzKuRi3d4R/ZDhRkJEYpdnbLQh+78ss9pg6AzeZulzD/DphBaGa8x i4mNgP9rYLusVePulEb1aA/DaLUEs4am+hIhcHMQFgZ95+q/kVWTNhnvdS1Z9FFEcbxs BtVWnOL+D4Vm6kvGMxWcUBx1q7Uy1ziM1AnUzVDhzmuog0GKmszS1P5yuOdHDfmUfGT4 1PkEHbGzsg//lE6dOvVir7ndLInn3iISxmIjXsKEgCEWWtaO0xCPXoQfBCivIgFmQfLy zh5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742918871; x=1743523671; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rb9ebUJ9N7Jt+0/wSlKeZDJqEG8Zo62aWudcvmr0rRI=; b=dMrS8rYVsfZmsZODdMUaXDsb9H2tgc20jNNJ8LTCGKFB15TVUZbKcjTDPI/j1+FMNy 4LEYeKpedhzEoLNB6WLZ1I9roxq0I0lLSCJalbJtiDfhIyEHxqBnHBSilT94s9Rv5+QU t7HweuyEKohM80suMgNXbqhLPRBfs+zPUZ5K7Vzwup5m9o+OTSmTgXNRogWPtkkt/YsC drf97D5f8Ap8Vv3SkDsMgVITXog2OMPHkItOanbD3yk7jATd0WGhcvVRO8GAw8LCTFPX 3cRVShivKfHM/NIjqD8t2G8UQB2S9C/k6G62ryJLQ3utzcLb1PRZZV4y1QA6pUsGWR3/ qt/g== X-Forwarded-Encrypted: i=1; AJvYcCWyKZO+sygrUH5TjQugHm9rNCxC5q3qClXRrdY2Eq/1+VgDmwJAGdNDalh+KSCuqzgnZWI=@vger.kernel.org X-Gm-Message-State: AOJu0YzAJDS1gEnhBDTMJZONXFbI6bYX1cHH4OXZoFbRT+6m1l88cNQZ 0mGBpDCzSBmaIqmyHi2MSmV5PR20kNf4/ru9/vrLtBD7HyGzXQYycHG9gURT77M= X-Gm-Gg: ASbGncvBxvo8pt8XKqCBFvduDBFokeFMgWPp1aLjm6scWTnqcqpXUs0oKYNGhcctnfT 6Ueza1ng5UESndY+YEIDfn6xHrMdZ7IcZIQmtn9LGMUki6LJcYZ3xdIENaRhGi2kfH8uuU+2n0s 6LRw6YOih0qoXFftuD63wRUrdIX/7CPryIz0wafNSON4REF/czJaZPUoN7tY2v56aSr+8CRU5E/ TxuhPgpPbtGUSJq3OOhb9s5you/E05c9J+zd7NARunEUb8KTQmaBo/dYHJx813ky1/0SEi9XLen yiwb2X2O6KRO0KO5WDD960kz42323/t+XN8g6jzIq//kcVxAu8sL//hTFkR20qQ= X-Google-Smtp-Source: AGHT+IFI/7tTmUNqF1LFsp9CSF0jzd2wofLTJjRMMtVmsGu6/uq/OnH6WnDOGAESyJFHG7RUegV3gg== X-Received: by 2002:a05:6000:2d83:b0:39a:c9ed:8657 with SMTP id ffacd0b85a97d-39ac9ed8663mr1542229f8f.17.1742918870911; Tue, 25 Mar 2025 09:07:50 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d43f43cbasm203972195e9.9.2025.03.25.09.07.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Mar 2025 09:07:50 -0700 (PDT) From: Jean-Philippe Brucker To: andrew.jones@linux.dev, alexandru.elisei@arm.com Cc: eric.auger@redhat.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, vladimir.murzin@arm.com, Jean-Philippe Brucker Subject: [kvm-unit-tests PATCH v3 2/5] configure: arm/arm64: Display the correct default processor Date: Tue, 25 Mar 2025 16:00:30 +0000 Message-ID: <20250325160031.2390504-5-jean-philippe@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250325160031.2390504-3-jean-philippe@linaro.org> References: <20250325160031.2390504-3-jean-philippe@linaro.org> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Alexandru Elisei The help text for the --processor option displays the architecture name as the default processor type. But the default for arm is cortex-a15, and for arm64 is cortex-a57. Teach configure to display the correct default processor type for these two architectures. Signed-off-by: Alexandru Elisei Signed-off-by: Jean-Philippe Brucker Reviewed-by: Alexandru Elisei --- configure | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/configure b/configure index 010c68ff..b4875ef3 100755 --- a/configure +++ b/configure @@ -5,6 +5,24 @@ if [ -z "${BASH_VERSINFO[0]}" ] || [ "${BASH_VERSINFO[0]}" -lt 4 ] ; then exit 1 fi +# Return the default CPU type to compile for +function get_default_processor() +{ + local arch="$1" + + case "$arch" in + "arm") + echo "cortex-a15" + ;; + "arm64") + echo "cortex-a57" + ;; + *) + echo "$arch" + ;; + esac +} + srcdir=$(cd "$(dirname "$0")"; pwd) prefix=/usr/local cc=gcc @@ -44,13 +62,14 @@ fi usage() { [ "$arch" = "aarch64" ] && arch="arm64" + [ -z "$processor" ] && processor=$(get_default_processor $arch) cat <<-EOF Usage: $0 [options] Options include: --arch=ARCH architecture to compile for ($arch). ARCH can be one of: arm, arm64, i386, ppc64, riscv32, riscv64, s390x, x86_64 - --processor=PROCESSOR processor to compile for ($arch) + --processor=PROCESSOR processor to compile for ($processor) --target=TARGET target platform that the tests will be running on (qemu or kvmtool, default is qemu) (arm/arm64 only) --cross-prefix=PREFIX cross compiler prefix @@ -326,13 +345,8 @@ if [ "$earlycon" ]; then fi fi -[ -z "$processor" ] && processor="$arch" - -if [ "$processor" = "arm64" ]; then - processor="cortex-a57" -elif [ "$processor" = "arm" ]; then - processor="cortex-a15" -fi +# $arch will have changed when cross-compiling. +[ -z "$processor" ] && processor=$(get_default_processor $arch) if [ "$arch" = "i386" ] || [ "$arch" = "x86_64" ]; then testdir=x86 From patchwork Tue Mar 25 16:00:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 14029234 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B213215060 for ; Tue, 25 Mar 2025 16:07:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742918875; cv=none; b=lQH6J+bohdHrKRPu3WG8KnUGqVIynyacUjoy64OGQdNeKgLD+hTRRSw5X/pS3qYPfRHE4mgl0uY0XCoaVVleZVIsca81nYDSThB8N7qWha+EM1yHILFrNBJOe6pr/PYWlEQ81M0ent9Ddx/48OFZexeypeWF9oqyvOxIM7IrCWE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742918875; c=relaxed/simple; bh=DjE5lydHNpWSKlp2OS+ArgpAXc20b7JX+EYn2yeg0Pc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dugAEbspg1XpXYCreZ+eXaOZkKn9cWcTd+SGJ35WWiXHap8/PgHHAqTINolXEtIV5PeQ2TthfparrMsKU+7moWaF9C5fjdcknGIwPXh2ayJC9JVuE8dH18BPqT9HUddurPlh2C+I2ZR/NpXluv3OkMq41JcvAnvvRS3/81TA2Ps= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=DE66MLtp; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DE66MLtp" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-43d04ea9d9aso26859205e9.3 for ; Tue, 25 Mar 2025 09:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742918871; x=1743523671; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vR6Kj/v7QUx4Q9A4sOPDY+B+4TbUf4f4gjMITODv1GI=; b=DE66MLtpxPZhe4qMmHQueCECTK/f9w9I7Y2TvRYif2qiqH74kkp2y4F6RDRFke55xy pwmSA/rQxUjbfSfBBDQM4l3ULWnPSnIMa9Ppqr6oxWSc2PC5cj4ztAR165Id4bZRwz5h e4bFi3SkCHO2OEdQRbccrY8TBjfN5WF3DHfkrymwypyFtvhggtWACcazRRJ6qRMuo4dS PA0TUETJRqc6UMvS9BblmAy0ZK9RZxkqzxFqTsCqqI3/1GeT8AoAaQSqERaLd4sCBEQi cePUwlMswtcZEVsThgZyvr3YBD7ef9Nm2jcjpdMwlt6/7jF5eoNQv5UfFiRZkZcEHCmG 7cKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742918871; x=1743523671; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vR6Kj/v7QUx4Q9A4sOPDY+B+4TbUf4f4gjMITODv1GI=; b=Issag06t/Zm/RDukuzBbU08wDz57EMZN4Ky1qb/0u5Jhuki7xyv5FbyKrsN/25wnVF dg0q+70f3SZnRiOo5IMAhW4g5vMfzsm2nZpqBBb2uaecDrTXzovxBXHLC9z1sh1uW8yw vuMpIw3E/VQIftXkQrWxhPHrjSPa+1D6dq0l4RrXLptGuyYd9MTciW4PsdRWhQbohgsO FZseXeQ22yZkyQrH3irDuoCTiJ/XdYlfFlVYSbLaUa6x9M1UOLNyFdw1CvZNxOzW5dxN HEuz5ZsoT6XpH1mEnpIv8mugwNoh7tMcZBxMP0Gs0ONDWssK87Y7gJHa0s7edUCgKAA1 7C+A== X-Forwarded-Encrypted: i=1; AJvYcCXlZo3sJctp+5ljgYylCbNWGN3lIDCytV+MZHXxHpLQT/mz+W9qQjnwgEo4GtfmuYTnSzA=@vger.kernel.org X-Gm-Message-State: AOJu0Yzu6iLiG5DYkvSfvh7EAMjGhZeKohg1mnbkSBOkiTEuIStD6G7Q yxSKK6+ZrlDCDSPGjuB4yBsZNwP93kLHdWh7zU46j4ll8nwhedBjx/b9bHvp+m0= X-Gm-Gg: ASbGncvEpjjri/4Ch9cfj81IWyp/jffvQzLcKicZUsIQQx2+XVDcVCLiorQcGV40lsk rricBDpy30j7drl3dAUqGCbT8a92kug8U6AwZObkax8fU2jvPHRa8+5IRlQsY42CuXARbERy/pa 696o27H8HGwjfG7c1Fhh+2yr+jAqH+6AiDKP9pKMQepknFa22lu11tlEScUuUQtyyuNY60gg/I8 +RWERn030Quo5pYw2Kqe6l0BncY55jCRRTJDbDUVbtc6q9BixG1jMPK3qntZRyQ4CWaMmZ5EopH +wo2rGYIJivB0t3IwBbMHQtE2iZMD9w+eFozELQyYnCo/ArTO4YxfGJLA7fLTSQ= X-Google-Smtp-Source: AGHT+IFcVqxqtEj63q0t7fchOfzrlKAVFuDwmZJ4n8qfIqVbAeEYL3vXur/5eNhzGwJap/Peq1YHNA== X-Received: by 2002:a05:600c:1e07:b0:43c:f61e:6ea8 with SMTP id 5b1f17b1804b1-43d509e3b14mr173288785e9.2.1742918871445; Tue, 25 Mar 2025 09:07:51 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d43f43cbasm203972195e9.9.2025.03.25.09.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Mar 2025 09:07:51 -0700 (PDT) From: Jean-Philippe Brucker To: andrew.jones@linux.dev, alexandru.elisei@arm.com Cc: eric.auger@redhat.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, vladimir.murzin@arm.com, Jean-Philippe Brucker Subject: [kvm-unit-tests PATCH v3 3/5] arm64: Implement the ./configure --processor option Date: Tue, 25 Mar 2025 16:00:31 +0000 Message-ID: <20250325160031.2390504-6-jean-philippe@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250325160031.2390504-3-jean-philippe@linaro.org> References: <20250325160031.2390504-3-jean-philippe@linaro.org> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Alexandru Elisei The help text for the ./configure --processor option says: --processor=PROCESSOR processor to compile for (cortex-a57) but, unlike arm, the build system does not pass a -mcpu argument to the compiler. Fix it, and bring arm64 at parity with arm. Note that this introduces a regression, which is also present on arm: if the --processor argument is something that the compiler doesn't understand, but qemu does (like 'max'), then compilation fails. This will be fixed in a following patch; another fix is to specify a CPU model that gcc implements by using --cflags=-mcpu=. Reviewed-by: Andrew Jones Reviewed-by: Eric Auger Signed-off-by: Alexandru Elisei Signed-off-by: Jean-Philippe Brucker --- arm/Makefile.arm | 1 - arm/Makefile.common | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arm/Makefile.arm b/arm/Makefile.arm index 7fd39f3a..d6250b7f 100644 --- a/arm/Makefile.arm +++ b/arm/Makefile.arm @@ -12,7 +12,6 @@ $(error Cannot build arm32 tests as EFI apps) endif CFLAGS += $(machine) -CFLAGS += -mcpu=$(PROCESSOR) CFLAGS += -mno-unaligned-access ifeq ($(TARGET),qemu) diff --git a/arm/Makefile.common b/arm/Makefile.common index f828dbe0..a5d97bcf 100644 --- a/arm/Makefile.common +++ b/arm/Makefile.common @@ -25,6 +25,7 @@ AUXFLAGS ?= 0x0 # stack.o relies on frame pointers. KEEP_FRAME_POINTER := y +CFLAGS += -mcpu=$(PROCESSOR) CFLAGS += -std=gnu99 CFLAGS += -ffreestanding CFLAGS += -O2 From patchwork Tue Mar 25 16:00:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 14029235 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9DFE1F4CB7 for ; Tue, 25 Mar 2025 16:07:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742918875; cv=none; b=hJ/z9cMMyLS/F9k1r22hxkFE8yhC+nY6BdFgOr781NTGHlJCP6dhlHFV34rl2DG8EyiVql/axdpPIsEKm0Q6Ldu1vADMc6/N5dO7Q2+QiR4seO2stV2onqfIbpv/w4J6/IVNpWk6MKyfoI/yDgoWpIo13ZpRsvDp+Y/0gYtsw/s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742918875; c=relaxed/simple; bh=deGWWrRabN2BUuESzK6sCMhIniOcxImAkRg9Tz3X9gk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pU7MzrzrcF6Rt3E8+EAqJ+6SRKPkqS4g8eGjSipDYYorVT+ykZu2c49S4pdmYmRabBeF8MAqWPR7fLgYfw6nk9HGcYWJ8Tq98e9GjDLh5qrFcIFAG/2lzS407yEY/GcypQ9i1/DL/tcsfI9vYF4ecKZo14cGgfRAGtLlrznlYpE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=js5X00Bc; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="js5X00Bc" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-43cf680d351so40766835e9.0 for ; Tue, 25 Mar 2025 09:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742918872; x=1743523672; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6v4oWjxs3w2OXtl8okLU3CaHVHPFgAaN27M8fJJ3JPw=; b=js5X00BcA5WSrR4SDEqoco5On0k7LTWnZBdzDg5Bxa7PUT8G+nf89Vc8TFspvol75h w/CLF2b6bZSi48Aoo3fCBp9PklgRKegrACGkvsrG3fBg7bD4fmlGyHxLUxfVpjnwqUNs x4OOU+oR9J0uuwEA1CFgs7xkg1b2Fod8inINBO15YuZR9iPCFkc+AohMVut4VFHOW9aN TyAEbjXFljisF7Ty9LunJ2X1+uPn16zpnVUDWFMz5AiSj9IrKOZ0H/B6sUtS0oEvvhJR Cf9PqiPtk9zJ+kEZyNN7LKxOiBJF2yXwxEVcKEt9b+r2VBn2riRhZ9YC4+Y9yTrktTWa Ey6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742918872; x=1743523672; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6v4oWjxs3w2OXtl8okLU3CaHVHPFgAaN27M8fJJ3JPw=; b=DWNtQrjYiebbswCLISfxpP0hlged4N822UNuHOV3JMPXiAaVx2vTSCSwd+rbrILbRN 0h8oDTnMc81o+bBdo1LFeYSAiyvx0lcLJX4xu5suey6+/iJevOO0oeqVuLHgevz06p+f Bveq9eMdchSG7khhutFW/AHbCXfj2J0ftx+z0c5oM1j7usQzDrcPcbJmxym2xFc/lhEy HQgX+s/+CT0IPlC2co1rGKNZmPuZ6jQyFxRLD+iUJxm8F+Fwaagnr6JOGMOC6L7S8rIJ 7ifAU/5J5g94xFCDdlzFsYVGir/4mZ68gJudZlshscCx0MD6icmMpBBMfQ1f73dEIP0C FOug== X-Forwarded-Encrypted: i=1; AJvYcCWeFWYP1kZrJD6uy3No3A092cZjrmZjK4IcN6YwrXtpXRqsvt1kbR0IlqvXGjfoynKcEk4=@vger.kernel.org X-Gm-Message-State: AOJu0YybOkmA0irI6l6FTRFzHF5p4ozE2gUolSfTcoJ79LHpH5VMzuIL vyzmFoUtjI61VK7YiHWRdv7LE5A/2R04QIbWYZcX7caqH7EvC/r4OeOE5ny2A7g= X-Gm-Gg: ASbGncsLEHRJTGi7Hba4mfjwyxwk7t2YCFDJgLgCbu21tzu5qQmfDvCOeNn6iIgWNR7 yv017mnm8GJktou4hni2QHxe4ozYv8E1ibJ7/ZrV/AHx2v/Et9Vbd8yu9mfKrOKQ97P+0ZIou6E QhtGGom0ggeb0nw39x4JlqQny4vXD4oW0A5I6mhPXlUzYLZ9EK48a9c15Vkl6Lky0fMngGCzadt s4JqW+hTMGKW7aFptyt3Qb3uK9sy3s78hpojWNGce3bUenHuKTqZJkYl1q8wBW0Z9yyPPbh+6r2 znlfbLjMFM4uzuBjGVHOmy+Ncr43xovu9/yrtFNXcnwLE6eao1mjWt0Q0xMyGkL/7eQnek1sYQ= = X-Google-Smtp-Source: AGHT+IHMqhvbDDmS/MsUebAwQrnmnrLCj1L6a/nkr+ekAH/NHss4lv/QGFSzm78I2k54eI/LtzmFrw== X-Received: by 2002:a05:600c:1d01:b0:439:8878:5029 with SMTP id 5b1f17b1804b1-43d77547ecbmr3550045e9.2.1742918871939; Tue, 25 Mar 2025 09:07:51 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d43f43cbasm203972195e9.9.2025.03.25.09.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Mar 2025 09:07:51 -0700 (PDT) From: Jean-Philippe Brucker To: andrew.jones@linux.dev, alexandru.elisei@arm.com Cc: eric.auger@redhat.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, vladimir.murzin@arm.com, Jean-Philippe Brucker Subject: [kvm-unit-tests PATCH v3 4/5] configure: Add --qemu-cpu option Date: Tue, 25 Mar 2025 16:00:32 +0000 Message-ID: <20250325160031.2390504-7-jean-philippe@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250325160031.2390504-3-jean-philippe@linaro.org> References: <20250325160031.2390504-3-jean-philippe@linaro.org> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the --qemu-cpu option to let users set the CPU type to run on. At the moment --processor allows to set both GCC -mcpu flag and QEMU -cpu. On Arm we'd like to pass `-cpu max` to QEMU in order to enable all the TCG features by default, and it could also be nice to let users modify the CPU capabilities by setting extra -cpu options. Since GCC -mcpu doesn't accept "max" or "host", separate the compiler and QEMU arguments. `--processor` is now exclusively for compiler options, as indicated by its documentation ("processor to compile for"). So use $QEMU_CPU on RISC-V as well. Suggested-by: Andrew Jones Signed-off-by: Jean-Philippe Brucker --- scripts/mkstandalone.sh | 3 ++- arm/run | 15 +++++++++------ riscv/run | 8 ++++---- configure | 24 ++++++++++++++++++++++++ 4 files changed, 39 insertions(+), 11 deletions(-) diff --git a/scripts/mkstandalone.sh b/scripts/mkstandalone.sh index 2318a85f..9b4f983d 100755 --- a/scripts/mkstandalone.sh +++ b/scripts/mkstandalone.sh @@ -42,7 +42,8 @@ generate_test () config_export ARCH config_export ARCH_NAME - config_export PROCESSOR + config_export QEMU_CPU + config_export DEFAULT_QEMU_CPU echo "echo BUILD_HEAD=$(cat build-head)" diff --git a/arm/run b/arm/run index efdd44ce..4675398f 100755 --- a/arm/run +++ b/arm/run @@ -8,7 +8,7 @@ if [ -z "$KUT_STANDALONE" ]; then source config.mak source scripts/arch-run.bash fi -processor="$PROCESSOR" +qemu_cpu="$QEMU_CPU" if [ "$QEMU" ] && [ -z "$ACCEL" ] && [ "$HOST" = "aarch64" ] && [ "$ARCH" = "arm" ] && @@ -37,12 +37,15 @@ if [ "$ACCEL" = "kvm" ]; then fi fi -if [ "$ACCEL" = "kvm" ] || [ "$ACCEL" = "hvf" ]; then - if [ "$HOST" = "aarch64" ] || [ "$HOST" = "arm" ]; then - processor="host" +if [ -z "$qemu_cpu" ]; then + if ( [ "$ACCEL" = "kvm" ] || [ "$ACCEL" = "hvf" ] ) && + ( [ "$HOST" = "aarch64" ] || [ "$HOST" = "arm" ] ); then + qemu_cpu="host" if [ "$ARCH" = "arm" ] && [ "$HOST" = "aarch64" ]; then - processor+=",aarch64=off" + qemu_cpu+=",aarch64=off" fi + else + qemu_cpu="$DEFAULT_QEMU_CPU" fi fi @@ -71,7 +74,7 @@ if $qemu $M -device '?' | grep -q pci-testdev; then fi A="-accel $ACCEL$ACCEL_PROPS" -command="$qemu -nodefaults $M $A -cpu $processor $chr_testdev $pci_testdev" +command="$qemu -nodefaults $M $A -cpu $qemu_cpu $chr_testdev $pci_testdev" command+=" -display none -serial stdio" command="$(migration_cmd) $(timeout_cmd) $command" diff --git a/riscv/run b/riscv/run index e2f5a922..02fcf0c0 100755 --- a/riscv/run +++ b/riscv/run @@ -11,12 +11,12 @@ fi # Allow user overrides of some config.mak variables mach=$MACHINE_OVERRIDE -processor=$PROCESSOR_OVERRIDE +qemu_cpu=$QEMU_CPU_OVERRIDE firmware=$FIRMWARE_OVERRIDE -[ "$PROCESSOR" = "$ARCH" ] && PROCESSOR="max" +[ -z "$QEMU_CPU" ] && QEMU_CPU="max" : "${mach:=virt}" -: "${processor:=$PROCESSOR}" +: "${qemu_cpu:=$QEMU_CPU}" : "${firmware:=$FIRMWARE}" [ "$firmware" ] && firmware="-bios $firmware" @@ -32,7 +32,7 @@ fi mach="-machine $mach" command="$qemu -nodefaults -nographic -serial mon:stdio" -command+=" $mach $acc $firmware -cpu $processor " +command+=" $mach $acc $firmware -cpu $qemu_cpu " command="$(migration_cmd) $(timeout_cmd) $command" if [ "$UEFI_SHELL_RUN" = "y" ]; then diff --git a/configure b/configure index b4875ef3..b79145a5 100755 --- a/configure +++ b/configure @@ -23,6 +23,21 @@ function get_default_processor() esac } +# Return the default CPU type to run on +function get_default_qemu_cpu() +{ + local arch="$1" + + case "$arch" in + "arm") + echo "cortex-a15" + ;; + "arm64") + echo "cortex-a57" + ;; + esac +} + srcdir=$(cd "$(dirname "$0")"; pwd) prefix=/usr/local cc=gcc @@ -52,6 +67,7 @@ earlycon= console= efi= efi_direct= +qemu_cpu= # Enable -Werror by default for git repositories only (i.e. developer builds) if [ -e "$srcdir"/.git ]; then @@ -70,6 +86,9 @@ usage() { --arch=ARCH architecture to compile for ($arch). ARCH can be one of: arm, arm64, i386, ppc64, riscv32, riscv64, s390x, x86_64 --processor=PROCESSOR processor to compile for ($processor) + --qemu-cpu=CPU the CPU model to run on. If left unset, the run script + selects the best value based on the host system and the + test configuration. --target=TARGET target platform that the tests will be running on (qemu or kvmtool, default is qemu) (arm/arm64 only) --cross-prefix=PREFIX cross compiler prefix @@ -146,6 +165,9 @@ while [[ $optno -le $argc ]]; do --processor) processor="$arg" ;; + --qemu-cpu) + qemu_cpu="$arg" + ;; --target) target="$arg" ;; @@ -471,6 +493,8 @@ ARCH=$arch ARCH_NAME=$arch_name ARCH_LIBDIR=$arch_libdir PROCESSOR=$processor +QEMU_CPU=$qemu_cpu +DEFAULT_QEMU_CPU=$(get_default_qemu_cpu $arch) CC=$cc CFLAGS=$cflags LD=$cross_prefix$ld From patchwork Tue Mar 25 16:00:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 14029236 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60722256C89 for ; Tue, 25 Mar 2025 16:07:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742918876; cv=none; b=eKOT2ATPYsHcdnQ2oOAudNoYJbsLY4eA9hE3lALBF8bcxgYoqMi5DL+6IzbpY8IyhvK+JXJLJnkCceFwXCyeSEzBFN9B4QZ12EXM3NiteJMmkxQhA1UTFhek2DP/lWe24wNXYyI7doyJbocFG/PBrzjpKiRefUmuTbFjfAkNi4Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742918876; c=relaxed/simple; bh=0WONtvv0Wmjtmqi4fbLAdYH6E3j310jc4o7aK+McS3s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HoFDC2coCj9E7dAb4EPKkMkapfUlkqCEAHRDo+PQIgv5XELRjseomnLAdNth2hV+gEnRHjx4G/b6nHOUdJ9BNr9OISDqugE1jDjcVrNniK5/LfEugxyarB4SVPhfqYW4FJftPK7Q/v2vXUca7qr1g3ayj2qgwHl13ytf7/8Vs6U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=e237kyBQ; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="e237kyBQ" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-43d0359b1fcso36830785e9.0 for ; Tue, 25 Mar 2025 09:07:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742918872; x=1743523672; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=S/KkYF0WM2eQ4j8En4HnzFELDHrNfXIe/+MMpGwXHj0=; b=e237kyBQf6257TzayhqSW69h1NiVBQB14Aud4D8RpWZTVwq/Lz5NeHJ0xyZaw2bmwC A4JMtuigYsGrywhpObRhl8p34w9zzjnFB96vBOI1eZMWk73aTye791ZK11O8al0NA8fC vPleOq5aufOA1tpQisieghVCP1gdRmevtHc/7N9tRKp+nzxXPIYgaUh5vgj7t7Ktam5/ 2CVIqf+tkFFGsyJHkpyhYgsfl6/lHuoVXT4VTF0+e2YqicHcXhSUcoe6viTENrmMY/od mO/RL8XEse/teLk6WbNN/jAoGTnyeqHu6aCaYhSyBM7jnc4NoA9Hm86nABgYeD9QRYZB +t8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742918872; x=1743523672; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S/KkYF0WM2eQ4j8En4HnzFELDHrNfXIe/+MMpGwXHj0=; b=pSidFYnluHe/x51/xXp3UB1wh5h+VA7lTV/D9KGiskZUOb34G6of8acL2EcCzJBtTu 3ERNBxngwYkSJ5zX9a2TDmyLTGq6/n1mNZ2dm3bEI0HuU7n+i3aEdpn4kpj/zTOodq7Y /Kpfy8ob2GIUBUVjkxaMNzbzPnMk+t07iXrqWQ9RrndbC/O0O3QqkLJpsp0vRsdII6Or 02CjernxUt3jnXPIvW3o7aNNtn+2w6fj4ed5uhp2M37Zvatd3ubsC4ooOvjhPSOfp2NF 0cnV2nCMyz76JYc/4VFozxsHy6s2xoniQVYG8D1SM2k1o6C9Ot+F403uGrODDmcbBzBM V6jA== X-Forwarded-Encrypted: i=1; AJvYcCXqhp+HEaPywk1TStaP1SukaXFe2753ya3J2330fjxmGZRMGh1u2iG2HlVen/ijkf81CVg=@vger.kernel.org X-Gm-Message-State: AOJu0Yw4XL3WOyV67Ik5Ojx9DTLvYYaHFBalFJKoHXaFPSnD4kz0LXrC m09+0DIWK5pQqCbPfnuXbBMnlnLxJkBIUEHpCSrMsQBLJLUwv/WuSwZHjmFiB4U= X-Gm-Gg: ASbGncvY2+gHpGtUw6nAD5ZZ/jmhYxTLOUyCBfEVM7Ab+NekPFAos3QgSxKIlZj8KTu 9BRQYNSpsr+N1fJpPPYQX/spfm8y3WmwX/P9Hx6pcdDVmZ2BKzigMdpx8ibY0+oeh2+qF1mIXdC CTUhI79a5ruNj32DOdj1Kn6NFcnTiPjENbQvBly2bSjR+tsTuxg9NEeizDrohB7zn4dJB2YefPx H7/nLLBy6XakIjMT5hzJbdnrFpNeqMn2J6mrYQ5TJ0uH8fQ8Bl9fwULeqvb1+Kj06B2tJeijwjh ozx9Ro1QoVAlKG3HL/a3a/jVNI8aR4ldeZ2RbgfcaDWkd1GGgVRncq82ebtOxKw= X-Google-Smtp-Source: AGHT+IFq4u+jQ8viBriHlPpSVQQmxgDxEvO7i8h+fg3MJkOMdTrOtVoXDilCPLi/MpwsyJ14xZjz8g== X-Received: by 2002:a05:600c:c0e:b0:43d:1bf6:15e1 with SMTP id 5b1f17b1804b1-43d77547eb1mr3370805e9.1.1742918872581; Tue, 25 Mar 2025 09:07:52 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d43f43cbasm203972195e9.9.2025.03.25.09.07.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Mar 2025 09:07:52 -0700 (PDT) From: Jean-Philippe Brucker To: andrew.jones@linux.dev, alexandru.elisei@arm.com Cc: eric.auger@redhat.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, vladimir.murzin@arm.com, Jean-Philippe Brucker Subject: [kvm-unit-tests PATCH v3 5/5] arm64: Use -cpu max as the default for TCG Date: Tue, 25 Mar 2025 16:00:33 +0000 Message-ID: <20250325160031.2390504-8-jean-philippe@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250325160031.2390504-3-jean-philippe@linaro.org> References: <20250325160031.2390504-3-jean-philippe@linaro.org> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In order to test all the latest features, default to "max" as the QEMU CPU type on arm64. Leave the default 32-bit CPU as cortex-a15, because that allows running the 32-bit tests with both qemu-system-arm, and with qemu-system-aarch64 whose default "max" CPU doesn't boot in 32-bit mode. Signed-off-by: Jean-Philippe Brucker --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index b79145a5..b86ccc0c 100755 --- a/configure +++ b/configure @@ -33,7 +33,7 @@ function get_default_qemu_cpu() echo "cortex-a15" ;; "arm64") - echo "cortex-a57" + echo "max" ;; esac }