From patchwork Tue Apr 8 13:20:50 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: 14043046 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 76153288B1 for ; Tue, 8 Apr 2025 13:21:04 +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=1744118466; cv=none; b=pexnV0VYQ0Ko/icsRMQ7TRHKnTCqYSq/d2Cu6646PeNJwuPnXsrfoDfVtOkjiQ3j5IDPGG0rGECa5Y1KCLfoKZPop+VVq/Og/toZS63TyhDGmXZcdQCpXanyqraCQJOjdaw7rZ8ElSK0G1j1YL920ifbGRaKx5tuimpOyJIVj/s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744118466; c=relaxed/simple; bh=4jPJPXMgY6/GNH/PWCQbZnehb4Ap/K+ZFSF2TYMKD2I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pPHBv7RCH8g+t8pStT2VmBri1GNrEmnj1NcvOK1u2FaVsm9l5S+G769HB2V9sbOSXGbP/dXaQkMOCZnJCGXDxZuLUtdHbclI2r3IhmXkJ5GXUTm79kGR9HzjLNbntXaC9YhrjeTTG9wuTvSSftmFwNYbwaU1UBxE1+ASTGPg718= 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=iCtqfoOy; 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="iCtqfoOy" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-43cfecdd8b2so43622245e9.2 for ; Tue, 08 Apr 2025 06:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744118463; x=1744723263; 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=SRH4HHKjDjKZC1O9fqzVBp1Dw5VmTF9lQVHJ5oF2lVI=; b=iCtqfoOyLw8q7F5zRgYxxy+5T8GMFWs//6xkaZXO2h//Chp4n4qM3MILjIHjdL9jOb yJe4orsakDzThUsiuO4tIYKuRg0ABdvvDLrpaH3brWb25lj9FaoMIkByvVlzXXB05z3D yrEYliAKony3ZyYIxNH0QzrXu5YMskfsDK8+G3P6SiVJ83mcEwMlG20qRoLDQI+EpAw1 YC9aIknGqsHxvCSvyWrQI4IKowg8VABDQOWANU1PdhvYGYGD0ZpDvehMPGTF+UOaenyy 8uqdrcLueviYDWzk24e6pgr7/Q4CrBPRlE52jIidOKP43OlH6CRAq75g3Fi8ugDkhpyz WA+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744118463; x=1744723263; 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=SRH4HHKjDjKZC1O9fqzVBp1Dw5VmTF9lQVHJ5oF2lVI=; b=H0XRLCZeyqklMghFckhr0UI5VoH6tY21BdbtGy7wIj7bzjPj496eZAfVPS9HIucmdl VWvoZwS7hnHXDTk0+FBJnjDOjcyTT24D93sjJAS1JSOo3BwGuEDFkECLy61NzlTrCKnn JWS5tgal6IXX+gLK9TMOsfoTONkqQy6ZCc07WRjiC8NNAjSrjeZtOnmjrvUQTUgrux3r yJMpTvsxGcCeckHF4qXbMLKxG6wgyVL4Q2UrLxGqUFPlim2hx5ya2tFVsbnOdaMwY3xF IXneLWWb+TBNJVC93kkZ+3Pab/vtRv0EiwlsoWurqzj3SytCViw8VBkecVH9ieP/4Y6F Guhw== X-Forwarded-Encrypted: i=1; AJvYcCWNwg0ZebCPop2Q6kBPQCy9qOsNDywHpzxxT2VkFuT46dmnteNAxZ4lonQmN1BBKb3PP2s=@vger.kernel.org X-Gm-Message-State: AOJu0Yy8mTdNSXR4OaHt8UINISwTb4R7PUucCFrVBsjRa7xGKJQ0kGn5 lmoCE+VvoCKFNDtPIP0o57ShdtOCU8EcbtTpkI2pXVic2NJtvwjD5GuTN7UU7RI= X-Gm-Gg: ASbGncuNsIavt7+DXnA0TFNv0wpeuT5E8vZKZ61zct1UPRIa2kCFlcTdO7axYCL0Q1i QCRvdT0w1vDa7F66Vv2vfzQjoz2g902C2U2nspMSIviVXcFOPm2ilF5501apXXyUCjgiD5Hajwy wsoNNNvJIgOEtPozq/T+STcS8KO0zhc7m5k1+x6NqpyZfRUzta2THIZZWIc+azAQ31iZK67+45S 6kDLawkXkZmOAHgmaIbgtd5eA3pYC6vlZxoVfHCpT/MhG3R2Efki4iC4S/uRsdecZx9GSc4vT24 rxnR29EYDGw0jG4F0mZ43nQHHRNJeU1EZAVA5HOGlQr/C3FjV3f0cjm4ooqbPBv9xafcASUYsQ= = X-Google-Smtp-Source: AGHT+IGXvBRS2ISmkSgOkaf9NDWmbD8mKXwPO0SBtc5D+QUv2VkxB2qWcK8BGtwXEr2R0/0t367Gpg== X-Received: by 2002:a05:600c:4e0e:b0:43c:fda5:41e9 with SMTP id 5b1f17b1804b1-43ed0da5960mr184760875e9.31.1744118462693; Tue, 08 Apr 2025 06:21:02 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec36699e0sm162159705e9.35.2025.04.08.06.21.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Apr 2025 06:21:02 -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 v4 1/5] configure: arm64: Don't display 'aarch64' as the default architecture Date: Tue, 8 Apr 2025 14:20:50 +0100 Message-ID: <20250408132053.2397018-3-jean-philippe@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408132053.2397018-2-jean-philippe@linaro.org> References: <20250408132053.2397018-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. 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 Apr 8 13:20:51 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: 14043047 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 25E752A1A4 for ; Tue, 8 Apr 2025 13:21:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744118467; cv=none; b=A/CIrNWJlQtCYf222JUH8vo5qBWm/6m6f00w4oHYNtZiDqB1qjKzfBtgNYyWy9KHPoC8QyZ7E1wSvlq8bzgTg7wny+/wGUKXnsMJYct/kEOvgeHvnK+TVpZBBxfbI21V4GcpGj5YOoMuZY1maGLVmwg46ZBym4K8nxLSfGkAVYc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744118467; c=relaxed/simple; bh=OSfxs5iCrFQRqvReCu5va442baMyJ2MCQdEE5yR8Qso=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=E7Z2BpILikP4lxK+FhsMZz0rdGpQZMlxKOUW088oVbjd00DBf9nCqkKxOewRCEZoK1hjUeOF2sbVvrC4tLqKZDsQujJidKkXM6X28NNYAQwLNbmpEcm6IjugnKx9SoSg2F+ytDnT10F/UZBr3poGzjwVTaOXl2NVhLYPIIb/+M4= 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=b9Bizyan; arc=none smtp.client-ip=209.85.221.41 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="b9Bizyan" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-3914a5def6bso3293865f8f.1 for ; Tue, 08 Apr 2025 06:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744118463; x=1744723263; 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=ilwSm1opvpysUjixabDWM8lrwnBUd7ZKRR02fY60WCw=; b=b9BizyanhjZPMKwPSip7Pz9jWZIDp1QIwSjz8tYSfSmsfuzj1ymN0IRdXA3UNHbatn DoLEbVeWUq7tNXM/jUs1z15HoMocPeRHQoQunmWvKsFqghxY/TbGBMHgy+Xdgn4w2hbH sGhmYZ8It3H3Z2/zJxanjR2G46CeM6S08+6v9Odkas6gEBcPOabPoTSyDC+pGgd6pcP0 7Qa+wtZj6fbV6bpRfcUVe/eXkeKUTipY8UlKA+dhGV7ko2PqBJvRXjRSCEcGDj2Tf6I0 b4xOhlUgQN2HXW7JEpcW4kRKJlUjPlnUvt8XaSVuwwv8vAKbm5Ji426flUbYtsCYk8Md fGbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744118463; x=1744723263; 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=ilwSm1opvpysUjixabDWM8lrwnBUd7ZKRR02fY60WCw=; b=GYdT1oTkrFgvNjzqInYZPESc/jjzC1TYJgmfSuCtWP0rEq1MYqsYdrxLR5UFop+izq wmUeL0HUCvv/y08rGGWGMJQGT5c+sikIMO0IFQV+1XWRb6AYRRZELZu4iSllwHi6J9Or PhBjfVo2Y6nO+DmD1VHdagMnbeO7Q6sn+jCC/lHOrFgQaZTcHF6xGx+ZLUGqXbM5hziq nXL/ofLJqH8iEhkzzM+AiglcJ47y/jJFElI9UIWQJXliJYkQqPtM2FhRz3ol16fJy9l2 +1kMT/yuYWzrR29YSewyuWZrOW4BcjCxQtgbPf+AJQVVH0Dtn5HzaLA/AozRc2CNdJMv mL/w== X-Forwarded-Encrypted: i=1; AJvYcCUClDl5TkzwhjhXEn+Lh4hG8l1fb9nwNhVX1Sd4MRB4ssUCKs06trzle0Vk/uDfZDVFDBg=@vger.kernel.org X-Gm-Message-State: AOJu0Yx64BBftoZFGWUpzP9G5uEoFi9rW9nPhexGGIfq6r917LOmMNhh 18LqlwWJJR/462vY83pgwgZTM6QwcG+zlSZ6BWpn+DI273yCrkq+HjK15g4WhKI= X-Gm-Gg: ASbGncsJMnTJ6MNuqPt7NsDALbvOmmZ8W6VDNvmCjfqC7ZjIjGOueav3DH+bLBfE9xO IYetw2zw6G0InjBhvnfIihvmyS62n9aOfLiUYJ/gLg4JudDcUcmf/iZuAFF6oZn6/BVG44JSPlH wVvKqs7R0PN6pCCtxE/FrGZNt0KGKu7r9D9M+jdlQbEGRrHXU/ktmrTB97O/9cko96ZaOJeqYkk D7jhgb8VHmqurWBg0ue1b+f6GMzI/TWWjirmzsyrHMazLSr/gXg2pDtvgcDxbvR6hzsjRS0ZQFI JsOHuyA94byNQAfll3nPhIMyzNZ3C1sytWMp2/6v9f8q/s9IcCT10fcLsC5AaSE= X-Google-Smtp-Source: AGHT+IFNyeSMXRQkAbHJWisVmPMP4/fHS+R5uIOxb+upWzY4DBBeBmZDM0lxIP3xSXgDasJ13TRs/Q== X-Received: by 2002:a05:6000:4203:b0:391:3998:2660 with SMTP id ffacd0b85a97d-39cb35759c8mr13486863f8f.7.1744118463310; Tue, 08 Apr 2025 06:21:03 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec36699e0sm162159705e9.35.2025.04.08.06.21.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Apr 2025 06:21:02 -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 v4 2/5] configure: arm/arm64: Display the correct default processor Date: Tue, 8 Apr 2025 14:20:51 +0100 Message-ID: <20250408132053.2397018-4-jean-philippe@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408132053.2397018-2-jean-philippe@linaro.org> References: <20250408132053.2397018-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 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 Apr 8 13:20:52 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: 14043048 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 D66902B2DA for ; Tue, 8 Apr 2025 13:21:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744118467; cv=none; b=gnHtfbsZMWR4XlC2ixDcLc+ZU1LGxgGzstrEEOpT+R14mtb2Cd9JQYTHIxzj53vAharW9Qry6614l3/ITfpLCN62OlpA47UOScRt1U2fcYpXOlo0+C5SUSWHnOdGHVC1L/pWoF0vMdkLE1SYdEGA7azfNf2qUR2FdsXP/amqkhY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744118467; c=relaxed/simple; bh=DjE5lydHNpWSKlp2OS+ArgpAXc20b7JX+EYn2yeg0Pc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dHk0mrPRJVCQz4M76f33O3RbqhL0HT/RlWMwKuzh5SFuiChYal375om8rkOlfLaah/YZgn7Q9UT+0scWh0Z2GQshTGzSCK6Q+QGDqnNR2/2QIqbFDsZYhMcbETYqsRpBM1jXyfunoI1QyoWIinGsk8/QSrVlVZRJiCddl9x/9Tk= 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=zKmOm9op; arc=none smtp.client-ip=209.85.221.48 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="zKmOm9op" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-39c1efbefc6so3254031f8f.1 for ; Tue, 08 Apr 2025 06:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744118464; x=1744723264; 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=zKmOm9opA87EGa4K08p7RLkmBhNI081/LGR/h7XyRtKp6ktyJRwJ2aS8WdkE0O9Ria vpoeQUS2ysE2t5NNUxrfTafwlil0IugPQcGJkqgp8kuyj3y/67s4l6hKZ0eWLIfgQ9lp NANSZEfjNj5ByLYuWkRsfzm/UMFhwyQtgSPYNfSZDsCClVn3lMkTydaLMLObY4VgjeaV ldh5BJuYMDd1eaFGHEAYY10KTEdVIlIXRMt4hIwTi4LpL5tOmLZrJ4DeOZB+ADBMvVg/ gOKJr3eb1Ag9V6+z0Jl4Q0EXrtsqG45ao07jtDsqrN4VUGWO53hZ/ECBeJ2KWngamnEQ PokA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744118464; x=1744723264; 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=DewEx2ADUkewSnnpceTMpERG6FIJvnyPuMemPkI3TZ5fK4N2tIiyiuWbqbWU2581Yb OiHrbMMF6mDl3v6/LMAVrjwxMuCftpPGWUNNv/fr2d7O87C+DzWtXlOoU49taXVgZoxB i1A8esngGTdDIgmjXIUK1QS8HhzqdhQ3MKHjH/guafqimFmnwDqYeBZfVb7J1gUDY1CT mC3/gLzJwyZX7FJw5wCgO6WBjwJZunVAIsIjkcBoRWhPGZzvEzUpPBtFiIW3quKYtlIp N9ZkBYnsEKjxvZMz1LptkFPdbJcBg8dM3ePlVjYDThXal//YUALscOvleXp693pb8fAd LvBw== X-Forwarded-Encrypted: i=1; AJvYcCVQRb6zZD3ABUas7JPLVgyq5HgjZY1roGgXVCB3taikXmcKbIn24ypjKh9T2MT71UiFnPk=@vger.kernel.org X-Gm-Message-State: AOJu0YymvJMI67AHo+A8ooN69Vqr6qb14tDeS1edAFtnQu0zL5KZxFIa TadxB9KfZcFYB7Iw1HTKfLjlEHDuMyrDG6Kg19HkKKDcVcxtGy8HCvjhcihO4Yk= X-Gm-Gg: ASbGncscjoLBM25BaIx1leH+wpLNnLBw1qUA2B+5q3YE9q4r3wIzH+TRAPOOYNdjLGp s822CPbKiS2S0rFWy694k+w3H4aQG/fEcwXKYX+0+7of5Tvbsv+Gpumnr71kjGfSWje+wMHE5L2 8JYxyWG0JAkWkKr3LquJLMMF3vROqy7o62NJaME4qm41+YEdY7NgudQejaXVINntCGGcGJSrT2Q xxN6++R2p/df8ACgGBUWXH2WCu3KlTv2T5KHQtDO3Y327wXcSZsXz1SmN4NBKnS5d85vA7g30CJ 80u/GN9WtEkpiRqbg0rVzL/FOYvKKybuAMl851CsLhrYuF114zKcp+7LerxVNBw= X-Google-Smtp-Source: AGHT+IGEYZcVHqPxh9b9iWTJrtArQr/utyYTQwlK58Bu3joqs748+JSADbxOpv7hF62mBqzNbjJDBA== X-Received: by 2002:a05:6000:4212:b0:39a:c9d9:84d2 with SMTP id ffacd0b85a97d-39d6fce0eddmr10745293f8f.46.1744118464024; Tue, 08 Apr 2025 06:21:04 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec36699e0sm162159705e9.35.2025.04.08.06.21.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Apr 2025 06:21:03 -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 v4 3/5] arm64: Implement the ./configure --processor option Date: Tue, 8 Apr 2025 14:20:52 +0100 Message-ID: <20250408132053.2397018-5-jean-philippe@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408132053.2397018-2-jean-philippe@linaro.org> References: <20250408132053.2397018-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 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 Apr 8 13:20:53 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: 14043050 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 8C3066A009 for ; Tue, 8 Apr 2025 13:21:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744118469; cv=none; b=t8uheJzPkwJmXqjfKiI+JSeW0KdWze8O8UK/aTBs9KmNRW2Fo3RTcX4TOFNn2oW4v5fB9nsyFflV7eKH9AYoCRAHV5c9Ilz5ii3492o/cuGMD7pArErB/PSIvl3o4tlzsA9SHi5dGuSRRQtwOg5Tkc54+1dk4cABR8+ZJwoYvRM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744118469; c=relaxed/simple; bh=IN7VS19lwIj4mFtoPVwDHThAtfSDM5hBoBnjzalsMKs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=F0kU3KpVF8k4LDKqhwVyegO4xPgxkdA8UU6RE9ysy9BICOn9gR4CSGF6OW00JPz1ztpHpff/ADKXMeB5A4pdvsvaOgNnxAHnEv+WmFS30E8TjUEq3uVFaBeBlhJPBlVikAYRXqoQ2MAM40wkR6kzvzv9xMZT9zzlww/uhoOXkrU= 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=Q1tP3FZ1; arc=none smtp.client-ip=209.85.128.45 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="Q1tP3FZ1" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-43edecbfb94so36077825e9.1 for ; Tue, 08 Apr 2025 06:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744118465; x=1744723265; 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=HOPA2fmXPhp0g7ThkLsi+uZYdZ8vnNqs5fSRtuJQXEs=; b=Q1tP3FZ1kiihFA24tLyWoVd89s7E0fkrJL6xFPAwTxcU7QLZ4dhNffYAoog7iFoPLc 5s5RohNOL30+BZtOe5Ra7eD5LNEkubrpEmAyKHhcXSjbMJnKIdTZGCVnGIXbi4H81B7Q j191zGTENrefDESLwXPwLnN49dyDopl7/5ZL20Nm0h16p2Y/rRLZer3N28Cecob9BnpY AOcr1m+hPJPxZ7c4v91ui/HuGrZiIaTAigRGyw4OM2HOuShk5TJDoe9X4Hpv7bB3V/Bl 86QAgY2YwSLX1PJWCQUTrBiMysrb11lXbbZ3O+opEOk6rJezpiBSR1w8wUxybWAYJ8uh oGNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744118465; x=1744723265; 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=HOPA2fmXPhp0g7ThkLsi+uZYdZ8vnNqs5fSRtuJQXEs=; b=unOYHI8gl0WQ2qHsHXPcVXwJwNPfkq2mtYnUJoJ5HjjndgmbFCYUR9TOUhLowtJb4G oxWDAIVPXOv3SRV1eHpJNuZnLdglEngfvWH/gPzsprvw1EY2OkKKya7qoCdR4w3FFUKh Cu7oUTFyMh7+5gIl0sV0v2aVorVwBrXqpmXgMyO3wu7HYBLAR3D+0iDP89C49eg40uaL 2jvWOIsZ+h9KJCXib+PQBcrMV3X7VISijNfAahDUiIfWI1NssSO3EE4aTXnkGr+GONGA EeQFunI3ITTN/zaN0bpU0pc3WUYc+d5JE8jSylnB2nb8JVp1aVWcXcgyKMJf1Sxn96tc nKIA== X-Forwarded-Encrypted: i=1; AJvYcCXxayRyLkV0ny1IGRQb0UqoTujaI93yNpkZVOXZwWycTYcLtcYar59qeliIQzXpJOgnkCY=@vger.kernel.org X-Gm-Message-State: AOJu0YyNLMnN8/WJMTyJndFOCWRJG7uFmoIaGBycEYZduR1urEr8pqXS r9AqEY7sfxM1cehQfBe+MHdKwYAXTiuZs7THZ2VKbU95U+wJA5y/Ya5dL6L50f4= X-Gm-Gg: ASbGncu6nHXndEqjUBPSbNpSFfgzT/AI0LAMyLR6vD4v4Pj6og8Uy2gbT+/cV9vqUrm JxFLAq/rX8a0S2qRd3K2xKGGiXLqrjj+40iXaEiNOM6BRkA0cK2utbjMpO/a5RsxWII5zqn7IKt sTmmms7td5mcjVdHSoITZQd7p9pbWPxflbOZBdNB9pKmukf2yjUAPCdbE2O5LVNBCZ7z1xRvxiC +70mkw+PZCAwAsZssXgIFgB6qlfW6Oq7OM9sYHSO2VLM1jiuEWt48E8gN+o949901iqGCxDNAer JY1yNmrUT40K6XM+mL5lsHt9uDfPcgxTT77626CZmMlUaQfj0Tn3FYol3eYU6MU= X-Google-Smtp-Source: AGHT+IEEYzGOKHN6r46LzVByJFbW7i8YbDNKMzXqurwCu8CRJ0JfLsDForarjYS/wFNxfVFVo9a5Nw== X-Received: by 2002:a05:600c:524c:b0:43c:e70d:44f0 with SMTP id 5b1f17b1804b1-43f1890857emr9390535e9.19.1744118464779; Tue, 08 Apr 2025 06:21:04 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec36699e0sm162159705e9.35.2025.04.08.06.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Apr 2025 06:21:04 -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 v4 4/5] configure: Add --target-cpu option Date: Tue, 8 Apr 2025 14:20:53 +0100 Message-ID: <20250408132053.2397018-6-jean-philippe@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408132053.2397018-2-jean-philippe@linaro.org> References: <20250408132053.2397018-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 --target-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 $TARGET_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 | 27 +++++++++++++++++++++++++++ 4 files changed, 42 insertions(+), 11 deletions(-) diff --git a/scripts/mkstandalone.sh b/scripts/mkstandalone.sh index 2318a85f..c4ba81f1 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 TARGET_CPU + config_export DEFAULT_QEMU_CPU echo "echo BUILD_HEAD=$(cat build-head)" diff --git a/arm/run b/arm/run index efdd44ce..ef585582 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="$TARGET_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..2bd42ad8 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" : "${mach:=virt}" -: "${processor:=$PROCESSOR}" +: "${qemu_cpu:=$TARGET_CPU}" +: "${qemu_cpu:=$DEFAULT_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..63367bbc 100755 --- a/configure +++ b/configure @@ -23,6 +23,24 @@ 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" + ;; + "riscv32" | "riscv64") + echo "max" + ;; + esac +} + srcdir=$(cd "$(dirname "$0")"; pwd) prefix=/usr/local cc=gcc @@ -52,6 +70,7 @@ earlycon= console= efi= efi_direct= +target_cpu= # Enable -Werror by default for git repositories only (i.e. developer builds) if [ -e "$srcdir"/.git ]; then @@ -70,6 +89,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) + --target-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 +168,9 @@ while [[ $optno -le $argc ]]; do --processor) processor="$arg" ;; + --target-cpu) + target_cpu="$arg" + ;; --target) target="$arg" ;; @@ -471,6 +496,8 @@ ARCH=$arch ARCH_NAME=$arch_name ARCH_LIBDIR=$arch_libdir PROCESSOR=$processor +TARGET_CPU=$target_cpu +DEFAULT_QEMU_CPU=$(get_default_qemu_cpu $arch) CC=$cc CFLAGS=$cflags LD=$cross_prefix$ld From patchwork Tue Apr 8 13:20:54 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: 14043049 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 4826679F2 for ; Tue, 8 Apr 2025 13:21:07 +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=1744118469; cv=none; b=jE3RABZF3s4Lv5KZ9dg1nyueZ4bHd+utO43zrNp0q12MO7sEnO+inbDEy8v4O0palrSt/Epg896RAP7JYcFaRwos57RJtgTOioC/ikOOM66+GgJ4f75N2vG5zRg339R9AzNOMRJR1kRPGTW+PAXFNW35hh8mIuSgCB+AmGTqTwY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744118469; c=relaxed/simple; bh=FAOMWgEt4ctVlbmvUA0C1egHbjcgOjxR0NjUHUtQWeo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IFNlCguH47Ij/7ATZtf9r1N83Y2+acS7NSJmxZlLx8PsH3RL3wLNNrtFgejwWANyw/s/NjLXGkqkVGKT70N3HFtHEhZks12RVQN8X8SkNYRKsi2qq6WO+8MeQpeq/1WL0J3au/AD6LtOIZ4cu5Bke9AcabWlDHz2TGU+UpnrWEU= 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=MeoG+aFv; 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="MeoG+aFv" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-43cfe63c592so52870675e9.2 for ; Tue, 08 Apr 2025 06:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744118465; x=1744723265; 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=hwsED9xLZcHWSWQwNeYdiP1D76YEuoP7ff0R7pjjcro=; b=MeoG+aFv2VfbKvvE2xplXBOGS4C/QIuMiomCRrGGcsdL5hbRnuyhqbh8KeyRvVfGJN CFi9QRZDJmgRXwqrJDtKYGt8Rv19xhYEKBsdjZj3wq9mer9gJtJQ8uOffn2VX9KkJA7H PcL4IDzvS5qHId86+QhcgisZvSDaGsTieuDc7nhwFVwCRZ36eS+NfCydImYrvrlbXUSA nPAp+QmEckt7H9H0JMzNgfY/qNJJDca9jeG8+aRRR3c+4peB/c8yDFJfbyh7E7Y9HCUY WOQ94mlvqJ3QeHTVYGPjIMfdoXsI4rdAonMEppOZR2uJD+3Yid3/9gFAtlBPjytRBjTP II0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744118465; x=1744723265; 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=hwsED9xLZcHWSWQwNeYdiP1D76YEuoP7ff0R7pjjcro=; b=fta5UaDNtnx3tcgQmGAQWjcwu5cHxcyBp2vdwFeMrFOJE7lysvs+c73UIHk9cgcQTz RFA+0a68A6iaPl3s9+vKd/sh3fOduX0XXUsoTS/jdXJ5jM0QvMhtacK2WaGti73O2pdG nedbmCgwiocvYOvn0XdBzZvmBciwSB3rwEp0Wc1ckgzQRnVHEcnaQLbzMOL23BOtP0Td steRqTqUjeu2PemElNkY+SHcUfmGpKCxB1rK+PhX3km+4i7bxZuoRfKP4ORVNvetFWAC c4nnnA/AyD7ATBd1nfG12d9/o6jOragnQMExTe3/tlHwu14uU8NUv33k0UzCuYd7pX2Q Q+fw== X-Forwarded-Encrypted: i=1; AJvYcCXOgSBOdd0Vq+cl+1jHYD61k7/kBTHfFvuPvE4TcvJm1oUkTYQ30pohMhA9vyYKFGrhPng=@vger.kernel.org X-Gm-Message-State: AOJu0YxsUbjRCMzpU5/pN/rqASdCx9LgkkYQvp7LA1wAZxmGSsSjlej5 Ed1D2amU06lNC60Frm/DgajvIjp/ljnFwCfyIca7dkKRZT5jSAxc58TCNrm4PSc= X-Gm-Gg: ASbGncvvPGGU/M9evxq32dsxuVH5EV8VJNMHCyM6ynt3MK84eocPKKkfhBySApkSomQ BTdV3Q/T2e3/z3MTXr1dfpbbKjteATrQArsFt12mlk/J3As9BAgir18aXVh0c74Q4IBdWwL3B2r R9F/7RJuKN/0eTOPjFJ+yewSsu5N9luC/eXZz3/tI3hczhEbVB9hBY1M46NvOF2WPCy2vP/uT2n CSBaeQV04AhwEeYavon8oTGwOUGwzYGalFgmxvVMbB9NqKoehDOhxPp4bcZ4tSevBJrh8VGOLy6 Udq/cHAgovqsgxvCk3BNI4wQ7tDjNt8qu6Ox1SLqrZsJX6aI1E1C3f8q5DCyS/w= X-Google-Smtp-Source: AGHT+IHZICYsUrjLH4YNZEOnxXpyTAQfzZP4OUy8xi2eNeiSzDjWYngsdEatS4fdZh+4tPkiN92iUw== X-Received: by 2002:a05:600c:3d98:b0:43c:f81d:f with SMTP id 5b1f17b1804b1-43ed0bf62eemr158443455e9.8.1744118465399; Tue, 08 Apr 2025 06:21:05 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec36699e0sm162159705e9.35.2025.04.08.06.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Apr 2025 06:21:05 -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 v4 5/5] arm64: Use -cpu max as the default for TCG Date: Tue, 8 Apr 2025 14:20:54 +0100 Message-ID: <20250408132053.2397018-7-jean-philippe@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408132053.2397018-2-jean-philippe@linaro.org> References: <20250408132053.2397018-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. 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/configure b/configure index 63367bbc..20bf5042 100755 --- a/configure +++ b/configure @@ -32,10 +32,7 @@ function get_default_qemu_cpu() "arm") echo "cortex-a15" ;; - "arm64") - echo "cortex-a57" - ;; - "riscv32" | "riscv64") + "arm64" | "riscv32" | "riscv64") echo "max" ;; esac