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 14A0CC43458 for ; Wed, 8 Jul 2026 14:17:50 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1whT5j-0007eM-5a; Wed, 08 Jul 2026 10:17:35 -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 1whT5Z-0007VQ-F6 for qemu-devel@nongnu.org; Wed, 08 Jul 2026 10:17:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1whT5X-0005YI-VL for qemu-devel@nongnu.org; Wed, 08 Jul 2026 10:17:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783520241; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=n59jMt2lctejhvE9sQWjQSAcIDnSAtinJezXAj4dDNs=; b=cWplpHizTQ0Juv52AsUetTRz5kqB2pnHlRvDGubfc03iTJZPJnTSdPnnNXkv+fiuzbGRiy IK1ch2AcJpxM+xRzHqfnhWkhomgnn/BjachciPOgOhbfTE408nAFdQ2YeqRA2rexqpFMyp GJ9lmGoyLTDNJ357DEtY7GuD1xjIzw8= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-434-n2nWo4RMM4SMRQLy_t5gDA-1; Wed, 08 Jul 2026 10:17:20 -0400 X-MC-Unique: n2nWo4RMM4SMRQLy_t5gDA-1 X-Mimecast-MFC-AGG-ID: n2nWo4RMM4SMRQLy_t5gDA_1783520239 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-493b21b1fe8so5915635e9.0 for ; Wed, 08 Jul 2026 07:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1783520239; x=1784125039; darn=nongnu.org; h=content-type:mime-version:references:message-id:in-reply-to:subject :cc:to:from:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=n59jMt2lctejhvE9sQWjQSAcIDnSAtinJezXAj4dDNs=; b=qlMvM+VGsIe5B4M4waZK/5aTOTFHl/Cjlsg/6zN13Uvy14FjET9OKtW24wOVWs0+vT oML8YOo04F582jpn+VQi8fmd1l81A9FIY39hRf4ZEqmIYxIOrtL6ZuSbuef8iUvJNYZY /w/BBjAsHEBl+EjyHGyQEWaeicoJZoo6BWxTflOtG7mZHxNWlECZRSTEZkkHn++jNlID 1NoU23tH2gJpXmtLftkYmR9qu0zRwIt7TMFUxod3Q4v+j//VjXbYEWAFptAFaFpMdHAx V/e8Tl8WhmTWItH0iC2pkEwsivYd/B7oc6pD5vUeFWH+Nj8vjEYQ5azvk8poRoNTGHia dl5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783520239; x=1784125039; h=content-type:mime-version:references:message-id:in-reply-to:subject :cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=n59jMt2lctejhvE9sQWjQSAcIDnSAtinJezXAj4dDNs=; b=ZslUxhOFekKhiDlTKQSKNMNImP8uXC0ohE4NOyJF6VEz2O4HtCIsh3fJfsAXV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600c:c4a7:b0:493:c845:bc20 with SMTP id 5b1f17b1804b1-493e688c7c9mr28112355e9.4.1783520238823; Wed, 08 Jul 2026 07:17:18 -0700 (PDT) X-Received: by 2002:a05:600c:c4a7:b0:493:c845:bc20 with SMTP id 5b1f17b1804b1-493e688c7c9mr28111925e9.4.1783520238390; Wed, 08 Jul 2026 07:17:18 -0700 (PDT) Received: from rh (p200300f6af371400309b667846b924fb.dip0.t-ipconnect.de. [2003:f6:af37:1400:309b:6678:46b9:24fb]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493e5a6240fsm46592525e9.2.2026.07.08.07.17.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 07:17:17 -0700 (PDT) Date: Wed, 8 Jul 2026 16:17:16 +0200 (CEST) From: Sebastian Ott To: Eric Auger cc: Peter Maydell , Jonathan Cameron , Alireza Sanaee , Richard Henderson , Cornelia Huck , qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: Re: [PATCH v4 3/3] arm/kvm: get demuxed ID registers from kvm In-Reply-To: <7ab742c2-2354-4316-a727-a56175a321b9@redhat.com> Message-ID: <9673dc6e-a15c-69bd-0850-5eced2174f17@redhat.com> References: <20260702133606.34529-1-sebott@redhat.com> <20260702133606.34529-4-sebott@redhat.com> <7ab742c2-2354-4316-a727-a56175a321b9@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=170.10.133.124; envelope-from=sebott@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.445, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Hej Eric, On Tue, 7 Jul 2026, Eric Auger wrote: > On 7/2/26 3:36 PM, Sebastian Ott wrote: >> From: Cornelia Huck >> >> We now have the infrastructure in place to handle demuxed ID registers >> from kvm. Use it to get the values that kvm emulates for CCSIDR_EL1. > > I wonder whether that patch is needed at this point. Were previous > ccsidr[i] initialized from KVM before? Nope. They were not. > What is the actual motivation to read them in this series. Consistency I guess. Qemu maintains a view of the register values as seen by the guest. This patch does the same for the demuxed regs. > Doesn't it bring the risk to expose new values to the guest? I don't see how. We obtain register values from kvm, we don't modify them nor write them back. > > For instance, in [RFC PATCH v6 11/17] arm/kvm: Initialize all writable > ID registers from host, I generalized the initialization of all writable > id regs and I noticed that the new initialization of CLIDR from KVM > broke the execution (which is not the case for the CCSIDR because I did > it a try) because CLIDR was previously uninitialized and null. I'm currently playing around with that.. Thanks, Sebastian