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 A7155C77B7C for ; Tue, 24 Jun 2025 19:55:34 +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-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XIXu/d83hfWotTdaEtC+VT8cS72fzPzEHDL0CG+vFp0=; b=VC8YkloirkrOCAa9QANtR9bzOi ZIsRmjxP3DXHx+KFOHrKhW2ws3VlitbIXh7zaJm3B9hlU8KqKYCsOAJRSk+LNyr+XHgkAH9yFZEge 3g2B3LRwSyY4emEmPGDWTG5SEL5PXVEO6sSyBlFmoG07GXQM9OQu1t84kM6oGfVrLjVpTM0i+PYgC rv7JHxsWfFz0AZuBGQtZlP6uF9184ACuMgqTzwSSwTP1MVjcU0N7JBamc8iukd9qLBAK48L0fZS2s VM7KkQD2BvgAGUKyKanfb00HmIOIuID7f2uRrdUIJhxyJcDfhPw5APW9HKQ+zRPHsWIOy8pKODTTc RTiNJTXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uU9jq-00000006gSN-3wqN; Tue, 24 Jun 2025 19:55:26 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uU72W-00000006LBs-0Rb1 for linux-arm-kernel@lists.infradead.org; Tue, 24 Jun 2025 17:02:33 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 439A5442D0; Tue, 24 Jun 2025 17:02:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BABFC4CEE3; Tue, 24 Jun 2025 17:02:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1750784551; bh=d4OBpBu6hw1KDprnFdRVmV5CvEfQ//NZYDFWukP17pk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oTtc8QNV8oFEiQElaJ2CWLUj9R+gB1KyUp+AXB3Lm5QdzjPNSzVnVtPemnTy/UAaU Sr/0QN3tUcdBrwAC7mrO0gI2HUJaM2eGIer7PjH5NVzJDY8r/WbHHgi02r2zhQ36IM Tim15ufyv+fXalJlBgPhMGTpCLksT62dtT5VCBatN8Yaer0i+hkzh9OvNiWNn7Rwas 3bGJlA9ecNonS1A8Nl2eGIAOex0oDoAYiOsMYiwmqfwKFe2AHntbmFctpBpc6m0ACI gJf1pK+fhq0n+jaQUIhOl6LYW455kb6OQdhoNyrNEMNWZGTiupPkurh2VPbAqiWtlt P26Re1PWYMyaA== Received: from [193.57.185.11] (helo=lobster-girl.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 1uU72S-009awv-KE; Tue, 24 Jun 2025 18:02:28 +0100 Date: Tue, 24 Jun 2025 18:02:27 +0100 Message-ID: <877c11f4yk.wl-maz@kernel.org> From: Marc Zyngier To: Catalin Marinas Cc: Yeoreum Yun , pcc@google.com, will@kernel.org, broonie@kernel.org, anshuman.khandual@arm.com, joey.gouly@arm.com, yury.khrustalev@arm.com, oliver.upton@linux.dev, frederic@kernel.org, akpm@linux-foundation.org, surenb@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v9 03/10] arm64/kvm: expose FEAT_MTE_TAGGED_FAR feature to guest In-Reply-To: References: <20250618084513.1761345-1-yeoreum.yun@arm.com> <20250618084513.1761345-4-yeoreum.yun@arm.com> <86ldppc86c.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/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 193.57.185.11 X-SA-Exim-Rcpt-To: catalin.marinas@arm.com, yeoreum.yun@arm.com, pcc@google.com, will@kernel.org, broonie@kernel.org, anshuman.khandual@arm.com, joey.gouly@arm.com, yury.khrustalev@arm.com, oliver.upton@linux.dev, frederic@kernel.org, akpm@linux-foundation.org, surenb@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@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-20250624_100232_163403_478E0626 X-CRM114-Status: GOOD ( 20.41 ) 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 Tue, 24 Jun 2025 17:33:52 +0100, Catalin Marinas wrote: > > Hi Marc, > > On Wed, Jun 18, 2025 at 05:43:07PM +0100, Marc Zyngier wrote: > > In general, please use a patch title format that matches the one used > > for the subsystem. For KVM, that'd be "KVM: arm64: Expose ..."/ > [...] > > > case SYS_ID_AA64PFR2_EL1: > > > - /* We only expose FPMR */ > > > - val &= ID_AA64PFR2_EL1_FPMR; > > > + mask = ID_AA64PFR2_EL1_FPMR; > > > + > > > + if (kvm_has_mte(vcpu->kvm)) > > > + mask |= ID_AA64PFR2_EL1_MTEFAR; > > > + > > > + val &= mask; > > > > I don't think there is a need for an extra variable, and you could > > follow the pattern established in this file by writing this as: > > > > val &= (ID_AA64PFR2_EL1_FPMR | > > (kvm_has_mte(vcpu->kvm) ? ID_AA64PFR2_EL1_MTEFAR : 0)); > > > > Not a big deal though. > > I can make the changes locally. Are you ok with the patch otherwise? Yup, that'd fine by me. With this fixed: Acked-by: Marc Zyngier M. -- Jazz isn't dead. It just smells funny.