From patchwork Fri Mar 14 15:49:01 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: 14017097 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 3268120126A for ; Fri, 14 Mar 2025 15:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741967479; cv=none; b=ZX5MLn32F6HSeQ5oX2tmQ90kB/njVAsCoQi3J+ul4X9or/USCxJufS0tu/7KL8iVbP2Fq/l+AfeSA00iRvD/DZCXFmJuk4XeuPaW+5d1BI4GyDorw5KLyVkiYZBOwOdS+AxKWC6mQ7VDE8xtN2DopaAxk8+AHmgx6QlqTUTO8oQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741967479; c=relaxed/simple; bh=kzP55/MIfAnJXYhci7u8/DYGzdl4OSe501J7B855nOU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=emC/FV/UNc+we83HHAT83ez/zOdqcAmVZ7Q+khbaEbZUv1XP0Y1x6/GzcxDC9TP/y27Qmx7mBphvbCbtAekoRvR28pD0/IRrEa2WtBbNhKHXoQE83snS5hC6Ybei7MF+h9XEmfgZtfV8rsY4c3Uu938BqwRFloVwdN3Y5RR8CCc= 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=VOQoMnft; arc=none smtp.client-ip=209.85.128.53 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="VOQoMnft" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-43d0618746bso15754725e9.2 for ; Fri, 14 Mar 2025 08:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741967475; x=1742572275; 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=ZgQ0Ki7S7zg6nzRN4ZWX4z5ZVEFjxmGZvTrquNKZxZU=; b=VOQoMnft3l6VQUeLPu/EQVDH03sdAECR23nYGzZqkOakDLZQWHux68MeZY5PdBHfuU EQ/0cfk9SA+ndWI5udvxU0WgvDygJZxD+Y0krAqzJVuNrR3L7stqqBNQipeyTNXXACtp dfYVuFyc0gXbHdp8vc4eMRM07L+g/d0RnENplyQ9mXmwV98UifVaUn2qIyxjFjxJj0iS 5KTnKBnvfDz4BUR3sQnfDJRKJWlbnXMUGDicai6ZrjxBedaJSwRofmLcRTTkhRuV/E0V 0ICQwG0QsWVuJQMacZ21lUbtbqPEPTEZTI8QXyMPfTWZKjnGor9SJs6fCi44hsgTg77P 0xiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741967475; x=1742572275; 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=ZgQ0Ki7S7zg6nzRN4ZWX4z5ZVEFjxmGZvTrquNKZxZU=; b=TdLiN8CJzIhUIfRZeWTpp5kSURmLHV1wshFz744kkwwlG2YlBGH2JfsD3qS3XM2BMy sRO1pXHe+mLH7VVBhFKZowOVkC4iw7x95i/2k9E2fYlW274/x7l7it2rcS7TZg4NO9S/ 3AS/+joqWcwBfEwHcLDSPv03dy2OLQvlxjRTa9h/fngMfzC/gXat/uFkZexptQQAQhUh GQN+cIPo7iNqlZ2SJHtmg8c7zt8aBuzhqVzw2zFVsNqAmdh1QjlU08/ok6NX1PKQ8jVC 6a0hKLrDpDuIidH8RSjYV8ev1y9lPxzmWQJD/ZNU+37J8HUZksl4874pHaF6G1iPrG9H iirg== X-Forwarded-Encrypted: i=1; AJvYcCVT7tIvbFwNgwWK8EB7XB3C49W4e/KufzRh/N1Man3zHsd2w7rxBtc+ei0yJ/55k9j1pqQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxczeN1fcubowQxtR4cRFLToAiglCiPWYG7mgIJUdVppeoTrqC4 V3buIUnElORpMgerApa/uT/mPVWxQ5/rvM7EcOO0feDVfqy/SUIyytjIojDCOilGzr5+BoKh/Ta 4c7A= X-Gm-Gg: ASbGncsyk2G25Rtg1QYlDwwo5wmRvZtXaOR93L/qry1T+3nnhWPw6bmsshsGdNJ4SJk KDio6B1eVntShm9nQUFHA1NOHhaox918CmnkoVSPPbZ3fDXRFO98rhyShqW0Atk0+SVwgvY1Jjf HVC1vK5IQo31Q+E9olK7UUEM4fOD/VNNNTc50HSIq++6gxcWgleaS4xHuu3mHJDHJ6B3MQBM/bH S5vkJby6ppfleAcMwM0bLExtYJpPKpNIpJr5PiAHjO3bWaXGIrsHD4ImGDXd3sBKmMv3pHgP2Rb HVYc2IYydlAl7OXfCFxvihESXHwiGdDn8T12sMxzDtwGzIGemqJtgDDaiFyEuo4= X-Google-Smtp-Source: AGHT+IFLNDlpPyRHd7THTJueCfShHv+cshQugLdnBwo9BUmrTvt7xn9ewfp+VyqjXp3lJ+1TO4LSpQ== X-Received: by 2002:a05:600c:3ba6:b0:43c:eea9:f45d with SMTP id 5b1f17b1804b1-43d1eccbba1mr38605875e9.18.1741967475088; Fri, 14 Mar 2025 08:51:15 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d21d67819sm15249945e9.21.2025.03.14.08.51.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 08:51:14 -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 Subject: [kvm-unit-tests PATCH v2 1/5] configure: arm64: Don't display 'aarch64' as the default architecture Date: Fri, 14 Mar 2025 15:49:01 +0000 Message-ID: <20250314154904.3946484-3-jean-philippe@linaro.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250314154904.3946484-2-jean-philippe@linaro.org> References: <20250314154904.3946484-2-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 --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 06532a89..dc3413fc 100755 --- a/configure +++ b/configure @@ -15,8 +15,9 @@ objdump=objdump readelf=readelf ar=ar addr2line=addr2line -arch=$(uname -m | sed -e 's/i.86/i386/;s/arm64/aarch64/;s/arm.*/arm/;s/ppc64.*/ppc64/') -host=$arch +host=$(uname -m | sed -e 's/i.86/i386/;s/arm64/aarch64/;s/arm.*/arm/;s/ppc64.*/ppc64/') +arch=$host +[ "$arch" = "aarch64" ] && arch="arm64" cross_prefix= endian="" pretty_print_stacks=yes From patchwork Fri Mar 14 15:49:02 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: 14017098 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 AC3A420296A for ; Fri, 14 Mar 2025 15:51:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741967479; cv=none; b=MBuEwq6zcQCYEK9GcPPIYnHezGKZpTNQ0rZvxJTgo79Cutu7HyU/x44fRU40XKp3sXkv/kye0VSVbnNGEOxhWP1EM7lCudJA2bO1jzzG9qMCt5M22Hu91CBrQ9aZdrd7xgkcSv1CITr/pgqrEhDYLitEBK4bIYdpLciTmL9tfX4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741967479; c=relaxed/simple; bh=T9x3c3QuJ2C9hpuOVam04QMDNACk2y6/xzXy91lyRNM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fXa6ezmXZD3t9t4uqW7LUQfjlqTZUCdbgyIamVa6LW70KNfbCyV8C4c8n4l+Cs866Q6s0CH9tTNn8428ugJluJt4sLGjXnpI5hCpqpRUnuZMWDcqwck6vUt86KLdv789x0UjaBojziG23z2UqZn7HtNtxdEjKDzn53PfkBFnYrk= 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=CoL/neej; arc=none smtp.client-ip=209.85.128.50 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="CoL/neej" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-43ce71582e9so15325175e9.1 for ; Fri, 14 Mar 2025 08:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741967476; x=1742572276; 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=x6KdM0HrFbl7EBCoEX5NDExMeE7MkqEbvD9eQdkyg/A=; b=CoL/neejGvW75VW7En3KadGfyYPXm8P2NEp6SwpG8c29IrqJ2RQ4gH0hLcA9y7NHQ+ cXSKJ5CSV8phDM9kgjDtvcfOAa5+yZRG3ACe/kNfwo02TYUB/XDdfqGAbHQrPDa7KHq7 cqtI45OZoXnmWACU7N33CjjWiKUV475856U6efF1EEwYpVHJ1EKGIvFreo8wly9To4EC Qk8Wo/+7CWVaX7xVDA04cGd8JvJIEkhJxQQEMbdo4xkHg1HwJbhBxRzAqAzb2FH+h2jv dSVSMChaLAuql0MjGsDTIXKCRyRVb44Fd67LXUq9EQqb9oWdcBotPMqTdOCYhrD14Emw 2trw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741967476; x=1742572276; 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=x6KdM0HrFbl7EBCoEX5NDExMeE7MkqEbvD9eQdkyg/A=; b=g+NWmb/FH96KKsU/hBWxbHADQGNe/7gbv8+bSvE07n/lhjP7whAXMOEERjisna0iY4 opHg8QroNfYjvY8c3J8JhuyXu1zPxDWhGlTIiVfG4pCWhSotffj/re0eFot0noAD1J75 uui3q9Ib27S6IGlJEsbVUenb0TXkDxT6LLfZ/U5Swpw3StLqUklwwrlqpMHEtQvlnEMN mxe7sSKeZQdL9GWp4GWanWYBYuuIQ3O2eJKx7ZWotyNrrn/0Td84BTEuJXpQ9sT8fzzi g5BzAkj6L+FVXLYGQDOz+IbWhHGC+mb4/MsFrqPkfrbdy5E8z/uDtPQP6rRkwPBEFA/M HHbg== X-Forwarded-Encrypted: i=1; AJvYcCUIJZM+n/sz1mcQhjEsqn4QjgFxriC+Z+o9IIiAZtoyroT8Dsqu3+zQzI7janjyJCQctzQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwS/R3CAnvrhYOViJADUS2i+gdEV0LipKbMbAGYmaXhq+IswD6R ghQrAsQj3pOBc2j98bcTxxraTwb1JndBS6pP8g+k7AovlUEhg6zqfCcTPlyJay0= X-Gm-Gg: ASbGnctFgkmNd5d63xBfMrbHxoi2FjI5JcRnHJ217MyiJF5NomETcD6vhmLet/pmEZY zF4pMVEBy2QGmdxxCAn16TKp3xeGPeuAHSWfYVA1oezpPsp5WnOg+KL2yDlGbuT5YDurDwi4Y8X KuxbsdOZVbcZNA95OsFlTcgCm+ge8mdoQ1L/yDicfHJ63hAc3J/MYx5i6CQ671e/AMZcSnXp+QK YzsPD5S4cDGc6wbg7q5WnLFq1Sy/X5lD6AqcnjIayT7Y2jBVsPdIkLzc1N+QhxAnRYSn9oNmig9 AiOodRXvy9ueTVcqfb8DSn2xFyYDqcIKTr4arpL1hk04OhP7rvIr7s71y2k7R4r7ASWaafGg9Q= = X-Google-Smtp-Source: AGHT+IGqjIk/FKjEZDkdrc3AqaWCRNKHzrwFDig+752nD7yLPvk8XeA3buiKLcR8gQHXba5VpmxCpA== X-Received: by 2002:a05:600c:3b10:b0:43d:ed:acd5 with SMTP id 5b1f17b1804b1-43d1ec78437mr43895775e9.10.1741967475876; Fri, 14 Mar 2025 08:51:15 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d21d67819sm15249945e9.21.2025.03.14.08.51.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 08:51:15 -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 Subject: [kvm-unit-tests PATCH v2 2/5] configure: arm/arm64: Display the correct default processor Date: Fri, 14 Mar 2025 15:49:02 +0000 Message-ID: <20250314154904.3946484-4-jean-philippe@linaro.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250314154904.3946484-2-jean-philippe@linaro.org> References: <20250314154904.3946484-2-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 --- configure | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/configure b/configure index dc3413fc..5306bad3 100755 --- a/configure +++ b/configure @@ -5,6 +5,24 @@ if [ -z "${BASH_VERSINFO[0]}" ] || [ "${BASH_VERSINFO[0]}" -lt 4 ] ; then exit 1 fi +function get_default_processor() +{ + local arch="$1" + + case "$arch" in + "arm") + default_processor="cortex-a15" + ;; + "arm64") + default_processor="cortex-a57" + ;; + *) + default_processor=$arch + esac + + echo "$default_processor" +} + srcdir=$(cd "$(dirname "$0")"; pwd) prefix=/usr/local cc=gcc @@ -43,13 +61,14 @@ else fi usage() { + [ -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 @@ -319,13 +338,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 Fri Mar 14 15:49:03 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: 14017099 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 3E63F202992 for ; Fri, 14 Mar 2025 15:51:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741967480; cv=none; b=avCAHq+2rZvXfc/GWg0RUy62bt7+KzWTBCXctTDmTkSiwfe3r/LIPvMO/l9QXWS60EwjOsNonZb61lL/LK/Rjo7o5qjxFjBijtj52BrS6JSpTStQERh6owTVOoR2KNJwWMvupJcjClRo/2wJBGZ16dRHdIHeelROiZf1qpe1HXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741967480; c=relaxed/simple; bh=DtYKD0hNvoy2Uxc1fJMAJI5G7nMcQlm4w8CtL1HgE8g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=thDyRUp5ppf9P45nIJYWYmRs1FKgSHRcgp/tzJuDDk7VGXKVIydEaxBVOGM240BG2IQQ3jUCdoROGeq2r1h6E4+tAVMctJXqQ0Fl6HCsKzHlZWml5F98FivFLgWT48Lg8k/4z4K9RRuUdr0pp3cyboUm/5VRN2QeEbMFM/7jg0M= 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=uU6pVras; arc=none smtp.client-ip=209.85.128.53 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="uU6pVras" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4394036c0efso15274745e9.2 for ; Fri, 14 Mar 2025 08:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741967476; x=1742572276; 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=+fRHRzXgCjmP/bnGMZgkYHknTcPw+tYfWwUZWqv1wRU=; b=uU6pVraswOltdh919VSe+pATNOle8vzYDd+17hYTmkUhVK4oOAW71wjG8kr86uWh+M IpaPpAiJzXziwmO3SwgzR2/PQjmiNkbZ3tdOefDo00MuS+SCNmCrfRst+NWe3VNYLUHY wROIoyXlS/Kjx2kPQGcciT5FDNQJJ34d5asS+nx4gN212TzamcIhrGunM97Cd88YQM9N w+RGhqkVurtS77ZQD+k53AwndldbeEV0yWbUiLX++2IkQfdkFkZrDJBqoCEcbi2l3ZF6 LQNmi/ChW3/m2b2zQQUMlMkWWf//jaXoYXrgddRD8MLN2xk3+wsS+AuQrFZUnlq5zRIR iMxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741967476; x=1742572276; 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=+fRHRzXgCjmP/bnGMZgkYHknTcPw+tYfWwUZWqv1wRU=; b=OC7hLa/EueWoXr8p5hBZz/10fWalpUpiMh8Vs3Cmhp8uVBhz9Ve05Ts+3PvtPb0Jio xcW/03B3dc4Qey00tzDH4VDBUwgLIbDjZM6fKNVO5MrLRLhqCub+yT+SXVIdn7AzYazw bnlhoFE2kH3p4sv8ToqpteDM/E1bfq9Np1HzaR6FWnN+4rNXMpiJHWjn70DbQEIG61rP Dp7ktvyuhDaSq/HpZnngnwdOhjUe4l+8NHQ2FkL6Ht/6kjax+paRIcrP8VCQJZNYe5rt hJvJ2kRmSwHxaugrU+n3kUSLI+XbwnLa4LPtma2wB/d5ZqNBgXHGClvmNyjobRIBzNbk ZNeQ== X-Forwarded-Encrypted: i=1; AJvYcCXrbA7pmPhd+BBQIxhi87zLmn7X1hqeTGPVnf+wOioBG6TCUiWV6+JZK9guMRnew1CZF6g=@vger.kernel.org X-Gm-Message-State: AOJu0YyV0yCzwDHvhMH14AP991dkQDicTVW5pfDbNd92bWp1QWOsxwYj CbadqxKSSQIhCn/s4YnxeZTCjqRwn5HaO5W7u5j8zafq+17a6p2ApJM/6FWaG9I= X-Gm-Gg: ASbGncuJRnLCoV+gEGF/QxKFA1OPlm6TlqoRAVM1VpWBUIlu95qEiXzW0yl0itDacQ4 TaMFV1d4ubI1W0r6C8jQgpR18+UGsXaPZWPGks24+SIdy7PlxKnekDisXslIUzAL5R6uGgLFe7H dxfGD5tNfgVHDIgcJXbfXwFadHNOoUsS+jvAbpPUcadK9fvyhXbCY5EeAepuey07xyCLqImztwO hpdRg5kmM8C0AnQ6t9VXlqdEIhbm8RVU1knKgFEQEN/v/E7Fz5Nweck3UAPDl5QYzMzirASTVoj 1UI0eNYC+UBHFSk6tX5HOHxiMQq4bI6uJjzD/FUHS/Hbg0NiC7zXYRDp16FTrzg= X-Google-Smtp-Source: AGHT+IF0xfqiSOAD/aXN3C4RaUAgjkDnEUSmI0lHDHuOw3S7x9Ps8i6yZGeRqXqx/ijFDdbau6zaiw== X-Received: by 2002:a05:600c:350a:b0:43c:f70a:2af0 with SMTP id 5b1f17b1804b1-43d1ec8643amr43633015e9.16.1741967476398; Fri, 14 Mar 2025 08:51:16 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d21d67819sm15249945e9.21.2025.03.14.08.51.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 08:51:16 -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 Subject: [kvm-unit-tests PATCH v2 3/5] arm64: Implement the ./configure --processor option Date: Fri, 14 Mar 2025 15:49:03 +0000 Message-ID: <20250314154904.3946484-5-jean-philippe@linaro.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250314154904.3946484-2-jean-philippe@linaro.org> References: <20250314154904.3946484-2-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 Signed-off-by: Alexandru Elisei --- 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 Fri Mar 14 15:49:04 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: 14017100 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 D63F2202C2D for ; Fri, 14 Mar 2025 15:51:18 +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=1741967481; cv=none; b=g9Oa6fuanapOFFAZyq63vK0KbxFiKFJPy/q/PUufRWXBftppMm4g+pGa8sGYUpYgXCyvr9w9se31QvJAxAjPR5iOi3UDBfURgRFjpRDcAvqSCMea++bXsmd+seYrUVjN6q8maOTUFlxwl922A08x+TV9znTLHBZwbailScHmNcQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741967481; c=relaxed/simple; bh=EkpO5sHjJ3k0w3GcR85plkff9xr8C3dB7U2UpNDrtPY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hKZouMvp+CcoolguNnZzf7fUZwEpbDdE9kC0Y3Pi7tpRI+O/lHygTFj/Wp7Wl8KnCX6VDo6l20dmmB3xLs3cwrtam3RRbGHGmAnE0Wjeydxi0PsZ7A8wVMQ0znG7PsmeLowPQWMM3KHtmKNMlvscbH2lKMzp+8Lq5tz5xpN/AWw= 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=r10WKUZ4; 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="r10WKUZ4" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-43cf3192f3bso21222385e9.1 for ; Fri, 14 Mar 2025 08:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741967477; x=1742572277; 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=D0zGO9xjg0JJPs4PFAX2msz/3yAP4xRZn7yO7s54uDo=; b=r10WKUZ4HKNqn5LbljXd80ZVRg0YklkL02nv+YnZyLTneQVH2rwjWI5npwlzunL00k bQl3XpiM+Bz5BM0+yH8MCJs1cVg+TR5lH6R3ySJJVjYqfvmHx3lzx7tMc+txCQT3fHaK w4TlrMajz9YHBCOPPWvGlIA/5WODZ+NkMDtSADzVLQAyarH5Q09njytb8cE0zK3Y0MON x/mEQVkk8zN7HnJhEcI33NyjES/OFxOYajZZrf5SmojKHNwrmAJcYgbn7qF4jT0hCshx 50szhzeeDIi6wX/vWEwuRuukH0hUzeB0MHG2KtYnEB3XDL9RFDiG57nIRDx2p/d4eUIy TjsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741967477; x=1742572277; 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=D0zGO9xjg0JJPs4PFAX2msz/3yAP4xRZn7yO7s54uDo=; b=SB84CgxVscGJ2pNwuIfQUSRvaeZkU0nYT4FRGsGE++u2+bji8wjUeqzoe4+ixTodKX a0fohyohP7YuceVHBWDNN7KKRY6fWUhNdNzDv7ie98bXbKj3hPoITNZ0Mvl6Pi0DIRST 7c/zh/5aG1H+wqGKonD8Cnopxn1VO5LO2MDItGwC3RO1U3zP55K32INWaXkgYgVP5KDc pQqS39UT3kMPfYgJuuoiHMsiDnEtikz/C733QiwMBabnJLsmcR8zkrzYcijTL8qsN9sH AASUDaVis9Vw+qN8NbYzHBHNBPwIjUSb/m6qtDQDnf4G1Yh1RilcFUZPBlXjdvSJ0FHn ciQA== X-Forwarded-Encrypted: i=1; AJvYcCWvsynpt3CO6yQ6/2rcyJMOB3v4NAE0RiIQ2RlTkkk4ifPmJFq//6xtMJWVZlUnJ6GrWSM=@vger.kernel.org X-Gm-Message-State: AOJu0YwZpDCeUOmtrAdMzpcmCjNwf/vZZ5id4JWrUo22mqF3z+iMGJES rzmrN3d/z4kzBEt10mc+Uzf8Fb4yNAPMM1Bnd7eGYWyb67gKed1x1sLRoBTW4uiApHeoWdIDDUI szIo= X-Gm-Gg: ASbGncsP3BHIXLvXilyUzOeaza9w/2fqt/E9tipLnowwq0yzmhNbPiIq9+a3gFwIZ5V swstfRus24buwtJrh+AZdHrK1vNvYMEiJ/x1XBN9/NgHBZShc3GfO5pa9eBKPmfI2qQvkB5h3mL oJk7Cm7+Ijfj1gX+arP9lBMCUAYvp/QmLxUyiYhSdBI+LEZ2YyK7eJAMdxHo3dJyHuAZZeYRuO6 Btc7+AYDL+k96FWdgzL/Lc5yUhNfrQ1MD+dwG1RN4swgYqvjFhgZv1lUKdpu7Dzq1Bc6txhgGau d2V74nlik8fpqiKN7Bmpnffevcp84KobL9KRuEYe8dmsDMXlNaaIEI7TEYyVJMw= X-Google-Smtp-Source: AGHT+IECh7v7OK/v5EHEcUY4C0dtwmYasbITKNCuGAGjy0H2BYksZDgS5IwiyYO2BbZMuCf+xK8yVw== X-Received: by 2002:a5d:6481:0:b0:38d:ca55:76c3 with SMTP id ffacd0b85a97d-3971cd57ed1mr4057887f8f.11.1741967476931; Fri, 14 Mar 2025 08:51:16 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d21d67819sm15249945e9.21.2025.03.14.08.51.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 08:51:16 -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 v2 4/5] configure: Add --qemu-cpu option Date: Fri, 14 Mar 2025 15:49:04 +0000 Message-ID: <20250314154904.3946484-6-jean-philippe@linaro.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250314154904.3946484-2-jean-philippe@linaro.org> References: <20250314154904.3946484-2-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 | 2 +- arm/run | 17 +++++++++++------ riscv/run | 8 ++++---- configure | 7 +++++++ 4 files changed, 23 insertions(+), 11 deletions(-) diff --git a/scripts/mkstandalone.sh b/scripts/mkstandalone.sh index 2318a85f..6b5f725d 100755 --- a/scripts/mkstandalone.sh +++ b/scripts/mkstandalone.sh @@ -42,7 +42,7 @@ generate_test () config_export ARCH config_export ARCH_NAME - config_export PROCESSOR + config_export QEMU_CPU echo "echo BUILD_HEAD=$(cat build-head)" diff --git a/arm/run b/arm/run index efdd44ce..561bafab 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,17 @@ 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 + elif [ "$ARCH" = "arm64" ]; then + qemu_cpu="cortex-a57" + else + qemu_cpu="cortex-a15" fi fi @@ -71,7 +76,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 5306bad3..d25bd23e 100755 --- a/configure +++ b/configure @@ -52,6 +52,7 @@ page_size= earlycon= efi= efi_direct= +qemu_cpu= # Enable -Werror by default for git repositories only (i.e. developer builds) if [ -e "$srcdir"/.git ]; then @@ -69,6 +70,8 @@ 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. The default depends on + the configuration, usually it is "host" or "max". --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 @@ -142,6 +145,9 @@ while [[ $optno -le $argc ]]; do --processor) processor="$arg" ;; + --qemu-cpu) + qemu_cpu="$arg" + ;; --target) target="$arg" ;; @@ -464,6 +470,7 @@ ARCH=$arch ARCH_NAME=$arch_name ARCH_LIBDIR=$arch_libdir PROCESSOR=$processor +QEMU_CPU=$qemu_cpu CC=$cc CFLAGS=$cflags LD=$cross_prefix$ld From patchwork Fri Mar 14 15:49:05 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: 14017101 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.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 743E4202C3B for ; Fri, 14 Mar 2025 15:51:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741967481; cv=none; b=rw986n+c7ueN5tHhsTJBIE09mWAlKO491L9cKonZt9S+UkTvRutDOjBpi/GNLCu/QA1389n1jfsPR+55M2q7LFGSg4qTRLxxNLv83daQRx3cpYiQPpDReS3Z5yM9Nz2SCU+Dq6nj/zwJBRinWNavLi9ThpDMEW1AhIquOz+GYoc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741967481; c=relaxed/simple; bh=/7OM+oNyDXmm/2LdOGMTaA6SqbTbV/e/lr9qj1j+GQ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aIVRIMVjOVpOkHRWrBorr8siLvTWhVYFD6SPp9g09jxLa/WoKlchHRIt0sWzwNXs34ybuX5w2riWuRmGa9U7xP2293SnjdVwk/3eVnw5QkaEsHFZCd05ZGzs0Jf2xg+q/LC4baZCIkZxHMVqJhX8J2XxoXhkqKWW+zeXPSS4wIQ= 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=O1tpEXo1; arc=none smtp.client-ip=209.85.221.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="O1tpEXo1" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-38f403edb4eso1277269f8f.3 for ; Fri, 14 Mar 2025 08:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741967477; x=1742572277; 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=++RCXC80KQUw+yCRaKjq5JOqlP9+bD2jusr4EJFhpro=; b=O1tpEXo1rm8Fnwax8+WfHMVfWQoVhGxBRz7Je9zIkLlr7nNn0TrRkPsisEzz/7lZKm rHxpaV9u7wJbVaugBor4lUMAZbuqhB6IgcgGs6cPaBXRBx3LJxxQJpbI9toN4pz9nz7+ 1NMehv87Pkvhfbyw4QMClz3lXp2K5StppzbS6BgEie3uMzQhsUPIgQ6OV38akuqnN3Cl xppYGjQdXPPUIo8q4W8LRcUBjN73w0hWb1UYH3/bRTJmDKIHa6acwLtgwAYqIYsN+pse phbNPVb2fO1j2EDVHGZ6IVjXSokpqSq4iO6f5T1JH/A7ZNWboqZjPKRBgC7V7D+JPxOz 6WcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741967477; x=1742572277; 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=++RCXC80KQUw+yCRaKjq5JOqlP9+bD2jusr4EJFhpro=; b=ctmE/Ziwe4G7XqzotVDbuVfz2WrE/m3VwwzLAxXx55fyQcjgsym6P4082iNmN1mrqM n8P9lpYexR0ALYoYVvTURFjtvUbap23FHCseoP+ls7ldFY+bwRoOgk3+0y+0kBgGO5L4 lry1Wv4F1RcB/eeC7MeES7Z5j6+tVaKEjI83Ed9WQ32ZaUbD+qPebt7F/EHCCRzWpaXj CHiTKeQOOT2vtmlP529qDUQqdlB3pWNvIqj3IyxZ4ScIVANhmVX1RW/0sTS01a1fvX0I 2X4zJSP+lM6iLN5yA5Yka+9/WV1cMEh2360L+pi8uWqCuAvyH8fjEQBVUCnQzVIz8Pfy FiDg== X-Forwarded-Encrypted: i=1; AJvYcCVMvmYDVvUStAJoEZhyvcj8AzSaC2hbm93gT3GeGe/B3pM067+gUUXUXtKTBlQ2k6c5Lds=@vger.kernel.org X-Gm-Message-State: AOJu0YwvM5h5EeCMbUffIjqmIsujQzOVW0Dh/R1bmTnKQC96udI0OCAU BSoDQ5fwRDXHjieFCad19w4Jf1t82ANUZT5cR7rRXUeSMwZm2w+C1jvXjjwLmaM= X-Gm-Gg: ASbGncsIgOaSbHCh8o9aqXXb3TuozEteBkCdnxaj973FJb1p5+93UNvBQgW7AFydq1U vvx2Ovx6grRL1shsoqli05vCpkwk/uGud9THu3xywm1ln57+Koyb5j2ZxMiSnSpvGukBfPt0udv kH/TnhTw9h54S1bQRP7EF4Nz5Br2y4IJyzR9qUUYC1biehx8VmTToBu4qwn/Pyu0yv7LQo/IQF2 x94xkFejA+LDMu/y3/z1mbuuTh6HyYl330v8zkBFielIRKeitwX5eenVi5KZ1Q5+Dfw+XuvHopa 3A4r0Ialb56tO/J9XGu2KY3eFrp5DGlPv259MMlfB63z3fPDMrqitnrEd+W1d7k= X-Google-Smtp-Source: AGHT+IEMzZIo8rHTV1Dy8xpK/5z2eXt1opT7nvqywgo9i0ShyunydBCLs1cS/ckJWtUYCIoMRCwBHg== X-Received: by 2002:adf:a454:0:b0:391:4ca:490 with SMTP id ffacd0b85a97d-3971e3a5680mr3380574f8f.29.1741967477465; Fri, 14 Mar 2025 08:51:17 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d21d67819sm15249945e9.21.2025.03.14.08.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 08:51:17 -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 v2 5/5] arm64: Use -cpu max as the default for TCG Date: Fri, 14 Mar 2025 15:49:05 +0000 Message-ID: <20250314154904.3946484-7-jean-philippe@linaro.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250314154904.3946484-2-jean-philippe@linaro.org> References: <20250314154904.3946484-2-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. Signed-off-by: Jean-Philippe Brucker --- arm/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm/run b/arm/run index 561bafab..84232e28 100755 --- a/arm/run +++ b/arm/run @@ -45,7 +45,7 @@ if [ -z "$qemu_cpu" ]; then qemu_cpu+=",aarch64=off" fi elif [ "$ARCH" = "arm64" ]; then - qemu_cpu="cortex-a57" + qemu_cpu="max" else qemu_cpu="cortex-a15" fi