From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 8A417C02198 for ; Sun, 16 Feb 2025 19:20:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Subject:Cc:To:From: Message-ID:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=oXyIwOGqas1izlgyAHAiRkr/iK4uh8FLqhRkUFNEAHQ=; b=bqIDi2LstY+I8MhxTHuNuzvFn3 20UXW0bTmTqo9N5ZLZmSwZkfqHQFPTa9FWFfFREB9WFBni0Jz2nE1CEm/9ahJaGR17QXyCtqbv/3d QJbzgAHRi6Dbtetunde129ydkXhOAGB0T6GXPDjLE6SefkPLI0CA59LYnYJVa4qAPaaSc41Cwpj+F c/Yih8fQ/TXvja2nemZzoD0DVbV7/NBPlH2MCIG4j5UgYrfRhx7bEtVslcEw7Tn6/KPjioaixsQp1 Yyy42Xy6RkTl0fvnqpk7xVYq3gFZIQWi9YOT3qkD08eCMU2qiT6K1J22oXNl0Q9MXvRjHkJxEJMdI 439bB/xQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tjkBM-00000002S1w-0feG; Sun, 16 Feb 2025 19:20:00 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tjjyS-00000002QbX-0xOQ for linux-arm-kernel@lists.infradead.org; Sun, 16 Feb 2025 19:06:41 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 3BF28A40EE8; Sun, 16 Feb 2025 19:04:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3D7DC4CEDD; Sun, 16 Feb 2025 19:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739732798; bh=O7NSxWzoeuFuIw1UPCPgZKMMHrar2/KGCtVfAJv3L4k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Jd84Zb3UF85llvUO8w/ChFisdlVk2JJiY4XicELTLblzQ0oTaMnn6JaMT7FkaaYAM BGikJ/njek2u+/qQ5XFs4YixT/ZpzZKjcH8FW2KUGM67M42DXTDQ3aJ4FDzzdjatRP xB00eyFHBfFBR7rljQRNrTj0SQRNQctdwzDT+P7IVLjbRnbgEEfh3FEfWplAD1wCdU JWVnKgIvm3xmMgMYmaGV3s2FbbS6aYYDj3RcDITQw6IXB1CW3tkHsVnuTVj4QuQYSm QmYX3FwZ00QjDODkWtBxvKHX2SjaqVefQFuS9aT8VTkbJLqMeQghiFObEBZC+q7rgv QHEwEZSIYurRw== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tjjyO-004cDp-Cp; Sun, 16 Feb 2025 19:06:36 +0000 Date: Sun, 16 Feb 2025 19:06:36 +0000 Message-ID: <87pljh1zgj.wl-maz@kernel.org> From: Marc Zyngier To: luoyonggang@gmail.com Cc: Oliver Upton , Sebastian Ott , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Shameer Kolothum , Cornelia Huck , Eric Auger , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] KVM: arm64: Allow userspace to change MIDR_EL1 In-Reply-To: References: <20250211143910.16775-1-sebott@redhat.com> <20250211143910.16775-2-sebott@redhat.com> <87v7tb17os.wl-maz@kernel.org> <86jz9psqwd.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: luoyonggang@gmail.com, oliver.upton@linux.dev, sebott@redhat.com, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, shameerali.kolothum.thodi@huawei.com, cohuck@redhat.com, eric.auger@redhat.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250216_110640_397992_82D5002A X-CRM114-Status: GOOD ( 21.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, 16 Feb 2025 18:55:23 +0000, "=E7=BD=97=E5=8B=87=E5=88=9A(Yonggang Luo)" wrote: >=20 > On Mon, Feb 17, 2025 at 2:09=E2=80=AFAM Marc Zyngier wro= te: > > > > On Sat, 15 Feb 2025 19:04:20 +0000, > > "=E7=BD=97=E5=8B=87=E5=88=9A(Yonggang Luo)" wro= te: > > > > > > According to this, the MIDR EL1 is updated properly, but the MIDR for > > > aarch32 is not updated, and I don't know how to hook the update for > > > MIDR for aarch32 > > > > It is the same thing. The AArch32 view is configured the same way as > > the AArch64 view, and there is nothing to do at all (that's what > > VPIDR_EL2 is all about). > > > > With Oliver's change, I'm correctly getting a different MIDR using a > > hacked up kvmtool, see below. I suspect you're not running with the > > correct patch applied. > > > The applied patch is V2, with writing vpidr_el2 disabled, Is that the cau= se? > The branch is here > https://github.com/lygstate/linux/tree/main > I am not applying your patch Well, there is no magic. If you don't write to VPIDR_EL2, not much will happen. You need to apply Oliver's change instead of the first patch in this series. M. --=20 Without deviation from the norm, progress is not possible.