From patchwork Mon Jun 23 12:18:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 899207 Delivered-To: patch@linaro.org Received: by 2002:a05:6504:191c:b0:290:25b2:841c with SMTP id v28csp3838181ltt; Mon, 23 Jun 2025 05:20:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV5fCBYE9FIqyk/ITSC6jwRU0aHMJFhbL2qtHIgVlCFFYgdRvdQ8mMm3K5+rmWtA2BgSlcoaQ==@linaro.org X-Google-Smtp-Source: AGHT+IHyuDC5jbwxKcPsTJKkzlg0Nkw1UYzBx4tUa9sIRnzFOyzj4ub0Edo/JYiXycMd7C0FnhYE X-Received: by 2002:a05:622a:1893:b0:4a7:9c08:6a8 with SMTP id d75a77b69052e-4a79c085f9emr63758651cf.6.1750681248354; Mon, 23 Jun 2025 05:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1750681248; cv=none; d=google.com; s=arc-20240605; b=Bzvtrfz1xAl5iL7Nn4vilAE3Jp+0p1yHuXVl62Ov4ZLJyfRLHWt3lTS2vr/s+jGDhE oD89gsK+QAh3g8aVxd/JK8h9OUUDTXOZ8ih0JJgbJpPSfMzsJXc3fARP1MnR4Ei3pEue 83OJqlmL5uKGlTvZxKQH8IcTvG42bi575Ij5Fp3wWZITzQ4jrPJNc5xTPovb5rbjU9jR ZX5UT3x89fsjJNt4Vza2UIp6ZGQhjOeU4M/FF0phON8BYkHINltNNCbaM2yfMXQwzJ8g qqLmIqWYGdYsIHiTDR1PvxTtRs/qjRgu6htG/tPlmij40iJd4iJ9XBBwmED/nC2K+ebh +Ovg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MgoMlu6luU8uPkDpvUPvEjZTODhHkmT/W4wpYdZo59E=; fh=i4vDaaNJJMDvQ2XTdk/cSdU7XlvUCPx2vhcXCt3psYU=; b=WMbbGw+a5s1MzXmTb9/s1d6pI2s+rlDtFw05kJT5EAtsoJ8F+JT2Ro3skixglASOrW eoHSi0dX5fsTeApxL01mGKiqkIGs86DafuBEUuWAUCh45L79+hdTHAjRP72ZFb+meWdw CpOjr55yqwcLDn0E6n9ruDgO4Iia75REELu0n0XxK8SEUSEII7cWVXeV2C2vxj8ZdaoN 0oz1OqLKFq7wMVnYdXAYVpoECa3jMO7qt1fx/6YypWGonXJQwkboeXKOpx7vH8t+eIsg TCVJYyDURSz1/i3ACN39xEpfC8EWu2A4u2dQAkDUYNBN/p41SjHf9s7CWcRilyL8dImT ltOg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CVzpMz23; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4a7ab9cfe10si3420001cf.659.2025.06.23.05.20.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jun 2025 05:20:48 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CVzpMz23; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uTg9H-0001UE-Bh; Mon, 23 Jun 2025 08:19:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uTg9E-0001Ti-QO for qemu-devel@nongnu.org; Mon, 23 Jun 2025 08:19:40 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uTg9B-0000Yn-6H for qemu-devel@nongnu.org; Mon, 23 Jun 2025 08:19:40 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3a522224582so1926345f8f.3 for ; Mon, 23 Jun 2025 05:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1750681174; x=1751285974; darn=nongnu.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=MgoMlu6luU8uPkDpvUPvEjZTODhHkmT/W4wpYdZo59E=; b=CVzpMz23T4COrgXR/FdUdeKQ7hB4B/qjzXRMc+ISoeE3M7QadJWaF1CiWM3U2xXtIm FygfI1UKpaITWHHPN+ubloPdrTzFEEvSwSU7QmX85Nh7MDWeEqsP4wURUAMYRcwevGwu BN4xeoOXMLhfyPoBzdkkipmqpQDG/VEB7F09g+QyjKmITcGeFlcgmYUUtJEKDsrfVStM BiiAiR9A7kqEbXDY3zws6VBmaZQNmyagHSUBUu8NHlh+UpFx0ebWUWIZ26IRmrMJ7Uv0 QqrzNTuo/AWMxm1D93sCEGJ64aoSwMhLQAH2GU3LV1k4tPViCzHpiFfciz5+Q9itTmz+ taZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750681174; x=1751285974; 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=MgoMlu6luU8uPkDpvUPvEjZTODhHkmT/W4wpYdZo59E=; b=QOsqDOoI5TwvR7J+9T7TSr8cYpLmIPNQA6ngueWcijvJvRDj9a6UKvByJddoM0+Nq2 qr6lgp7jqRqC+zKyqDflqaernRzrao5BL2rchLBVT1pksYRabkcylbIW+Dq4qX7BBdzc 0bcsW7bLiq6AXQHuONvkGx8dGP/uCICUqoj8tKgctfXXHniLFaBYKdPMN57UX/5wNHDW BjNBhF5ABs+w8NzN86pq8f+gsDL2jJbecuxpyHscHonrN/0D/TpQo0G04atEQ66GM1fW QM7NpGcVeMLiWpUjbBj65EEYYqTs4Gcn6oI1iweoQvLG+FdcrYQFZNUV+lxWcRUJUKmx mdOQ== X-Gm-Message-State: AOJu0Yw1yhlmoVWgmB6LK2VfLlI98/1aryBx67VEbxh+Fjg6yfC+Orh3 YRPKNw56SpicoFMZ4UhYxKnhvYBzeQ0MlH4GAprg/rEipRQ1qwPK9FXcAuYaasAfrga8zez9tJU 6LH37 X-Gm-Gg: ASbGncs2CT9rZTora7rdQCJIe5IgdRQf0nQSdBuDSn7Y/aRACVYbKhr3Tcd/v/D208O THIM5Zti6RqZvvr6DRsN0Tpa5du5JFOqnbkMehcGsCtspwDnqZgHbHjczqsd3HUH8cwcJ2H8vqH wWSPku13kO45tIUcGrVzmF5eRcSXUW/qOX6SDrkpHiA4Q2HjBnOg86Bf/KqXkQLLDu8UzQjfJ5F QCbBt+6efOoDizArjD9vlzSy2klWE0/pvZJzSYAluB2HFmWE9+HcN+M/gz+p0s/WMtjKOPfoKSY QNPugvzQgWp8vbfq8WPdqziD9S2PolYbfpwQq1hNpSv4fJxB6KCABMvpas9gRAnBOxfjXBujyRI HZJcKQXGA6xnMDWooprrfV0h/A2PuNPLk8ZOi X-Received: by 2002:a5d:584c:0:b0:3a4:e6bb:2d32 with SMTP id ffacd0b85a97d-3a6d12a2416mr9606493f8f.22.1750681173855; Mon, 23 Jun 2025 05:19:33 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a6d0f1054bsm9217868f8f.9.2025.06.23.05.19.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 23 Jun 2025 05:19:33 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Leif Lindholm , qemu-arm@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Roman Bolshakov , Paolo Bonzini , Alexander Graf , Bernhard Beschow , John Snow , Thomas Huth , =?utf-8?q?Mar?= =?utf-8?q?c-Andr=C3=A9_Lureau?= , kvm@vger.kernel.org, Eric Auger , Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Cameron Esfahani , Cleber Rosa , Radoslaw Biernacki , Phil Dennis-Jordan , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= , qemu-stable@nongnu.org Subject: [PATCH v3 09/26] target/arm: Correct KVM & HVF dtb_compatible value Date: Mon, 23 Jun 2025 14:18:28 +0200 Message-ID: <20250623121845.7214-10-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250623121845.7214-1-philmd@linaro.org> References: <20250623121845.7214-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=philmd@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Linux kernel knows how to parse "arm,armv8", not "arm,arm-v8". See arch/arm64/boot/dts/foundation-v8.dts: https://github.com/torvalds/linux/commit/90556ca1ebdd Cc: qemu-stable@nongnu.org Fixes: 26861c7ce06 ("target-arm: Add minimal KVM AArch64 support") Fixes: 585df85efea ("hvf: arm: Implement -cpu host") Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/arm/hvf/hvf.c | 2 +- target/arm/kvm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c index d4c58516e8b..bf59b17dcb9 100644 --- a/target/arm/hvf/hvf.c +++ b/target/arm/hvf/hvf.c @@ -879,7 +879,7 @@ static bool hvf_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf) hv_vcpu_exit_t *exit; int i; - ahcf->dtb_compatible = "arm,arm-v8"; + ahcf->dtb_compatible = "arm,armv8"; ahcf->features = (1ULL << ARM_FEATURE_V8) | (1ULL << ARM_FEATURE_NEON) | (1ULL << ARM_FEATURE_AARCH64) | diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 74fda8b8090..9a1b031556a 100644 --- a/target/arm/kvm.c +++ b/target/arm/kvm.c @@ -266,7 +266,7 @@ static bool kvm_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf) } ahcf->target = init.target; - ahcf->dtb_compatible = "arm,arm-v8"; + ahcf->dtb_compatible = "arm,armv8"; err = read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64pfr0, ARM64_SYS_REG(3, 0, 0, 4, 0));