Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7E529CC6B1A for ; Wed, 14 Oct 2026 06:20:58 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xGsM3-0005o6-7O; Wed, 14 Oct 2026 02:20:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xGsLx-0005nL-RS for qemu-arm@nongnu.org; Wed, 14 Oct 2026 02:20:43 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xGsLw-0006wO-14 for qemu-arm@nongnu.org; Wed, 14 Oct 2026 02:20:41 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4a19cba5c14so30450705e9.3 for ; Tue, 13 Oct 2026 23:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1791958837; x=1792563637; darn=nongnu.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=odC2w+//hTwiKziasqftRplHedV3NpRa6Q6gpapZCsM=; b=SazPdAsScEEch9EkXqFitnpgE5o5Ph27JyritV39bR02grxxjRGp+b5C5mXBL+gqvH 5sEXo7ADBbza7OUblK160kr3lSnbAJVNez1Zb9W7xhHlHWv3Wb+Q8YVQpPiYBdKDPKZk 7H+ZlE/bNaO7xittHfkgucOoSACpv45UfSYWJPSrdBi7aGww9OYWkKAnvPULruINlfz6 MiQ5L9tbFQE/H9rdcTnGYqor8c0cBU+Uoe0nl6Jsmbjl4GjTcGi8doZEHcp/av8CA6I8 7u9e2pEiiHKVt2SrDnVXAQnc2G0dfxdZ4UXUjj/Kvf6irdC2eoDb1T7Uwmv8/6j4KpT2 WjOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791958837; x=1792563637; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=odC2w+//hTwiKziasqftRplHedV3NpRa6Q6gpapZCsM=; b=dzVPu3diaMfvdLaBlSlLsZ8sgtHRR2fBIVafD9YAr2YH//pE8HcNAhxG2U65UnbIbm uI1Re63F+4/j3sXJ+ukr7suUztt0kCeQOSLlsFe+ZRQZY2o9Z1ycZP+6NNB+SyaOd1hf KvFcDMb/UA00SDhftWEL9dZweu+Jih7J3C8+J4QVBKXXwC/MkzdpY30oMlnWA/MMQ3co Ax074FE0m5IBD8q1CoxzOAO8qHH1Mra5vYwPS0hNi9B4MxCYBdsz/t9Dq+SM6oc6OqEn GiHIIm43mfz3ugyMNNj52TybyKJOfKCR9obE7IHGz8A1KHCoafFboUaqOgInUt9OP+45 O9Mw== X-Forwarded-Encrypted: i=1; AKwUvBwD0BL6sq7clAnS2oHL3TmpxgzqcLOFlaO2zJWcBn49sUNwOIHSMiXfDVUqjp1LgY7pqJIYlXaBZw==@nongnu.org X-Gm-Message-State: AFq9FYLkfCRNDIjEDbdbsg6fre2UteXTVU+KFpZqWJTJX2ydF1JiMRk+ WReEAw+3CeObkbhM+Qma4qqgbnIUAg0Lj3SyCPF8zrNw00F3ntGj1KYAjI6PN+fNcnI= X-Gm-Gg: AYBFou2yRvu9hVYefd3gPCualSZiJJEhmMctzmmM2XmCKMXhQjRi5dX1oFHfrqNpgDX QwnkIaa+hw2K51iUGQE2DCfJyPvNLmiHhgSW2gVCx6jWt6u9J9qwOn8kjZTGJoYYVFcUWYuqutY aflHxBx7Y6X3lZJwPxrYTY65yewFEOYIZftyfDY1gZ9eCgpa+ulHGjMb/RH+uEc0fRPylpJ1/pM Ve4lGj2Y2svR7lO8waS0BevlOh58GVjlFaDKIQKh62YoeXg5zVOacZxqFU6kNV3SPBJtev4v4at HW5yjYN7APD27fsg5y8mFqO2sQkPTTQolVuNTHv02BS30ItlBDaeBO5IZmf1iTSbPM67gvesiR3 gZrYmjCkyjDEIPijH3d84bzZyWxmgNwj6aABQiXASrNeYANMKkV+x5wThto5miH2Q98OWGZBDje Gh86xQtW8GbIVXg+NSOu+g4kiuwpjY8lzKkDoAbCUeowEGl/KjY1MzBXc+xoIHUylVqyHifmhti HPhZC581QjSOsUj0Bu6zmZ4Ki16IED0sqAZfHsiOkFhEL85I1ZsWiiQ5f5g51xtlQ== X-Received: by 2002:a05:600c:8184:b0:49f:ffd0:4039 with SMTP id 5b1f17b1804b1-4a18e4f2221mr253073475e9.32.1791958837267; Tue, 13 Oct 2026 23:20:37 -0700 (PDT) Received: from [10.86.151.227] (ip-109-091-152-129.um37.pools.vodafone-ip.de. [109.91.152.129]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a18c1e33d2sm608057635e9.0.2026.10.13.23.20.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Oct 2026 23:20:36 -0700 (PDT) Message-ID: <1f4ff4eb-d1f7-4903-9927-c1cd5c867d7d@linaro.org> Date: Wed, 14 Oct 2026 08:20:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] target/arm: Deprecate using named CPU models with KVM To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Eric Auger References: <20261013105147.1070641-1-peter.maydell@linaro.org> From: Richard Henderson Content-Language: en-US In-Reply-To: <20261013105147.1070641-1-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=richard.henderson@linaro.org; helo=mail-wm1-x32d.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-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org On 10/13/26 12:51, Peter Maydell wrote: > Currently when using KVM on Arm, the normal thing is to use either > the 'host' or 'max' CPU types, both of which give the guest the same > CPU as the host. We also for legacy reasons allow 'cortex-a53' and > 'cortex-a57' CPU types, which will only work when the host CPU is > exactly that matching CPU. This is because the original idea of the > KVM ABI was that userspace would request a particular CPU type by > setting the target field in the KVM_ARM_VCPU_INIT ioctl to an > appropriate KVM_ARM_TARGET_* constant. However, it quickly became > clear that this was a bad idea, and now everything uses > KVM_ARM_TARGET_GENERIC_V8; the tiny number of existing CPU-specific > target values behave identically to GENERIC_V8 except that they will > only work if the host CPU matches them. > > Future support for "show the KVM guest a CPU type that's not > identical to the host" is going to work by telling it different ID > register values. Real Cortex-A53 and A57 CPUs are now all over a > decade old and not in widespread use. Deprecate the ability to use > '-cpu cortex-a53' and '-cpu cortex-a57' with KVM, to get rid of this > odd legacy corner and open up the opportunity in future to support > named CPU types via ID register settings if we want that. > > For any situation where the cortex-a53 and cortex-a57 CPU types > currently work with KVM, '-cpu host' or '-cpu max' will have > identical behaviour. (Though note that if you are using "KVM, but > fall back to TCG" then the fallback under TCG will be different.) > > Signed-off-by: Peter Maydell > --- > Personally I doubt anybody is actually using these named > CPU types... > --- > docs/about/deprecated.rst | 13 +++++++++++++ > target/arm/kvm.c | 7 +++++++ > 2 files changed, 20 insertions(+) Reviewed-by: Richard Henderson r~