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 70130C982DE for ; Mon, 21 Sep 2026 08:52:45 +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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From: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=Eo4fcjzYNTZYJ6GJySFZOofu6JxQtkKRyi/fuSea+jM=; b=AKALLTtT9XSkmqwNX4LMOwIzOX 39002SWPw/46f9V2KRtHoMHGQ669U4WFehmBIlWVSq7cqFtB/kacQ86y0UvagHN3mWdqXuZctlRyR DwUosL78nRDRJs8kwLnNv6DrLAS34IsuJ/16ZOC+0my7vimmZTIoKEn2NmJyUY5fUaAhmvOoUkuIG QmMRwXGhq33F99IWIos6mEpUAS+/2KHodQpHpUqDkzI5F8Eq9QoFxNwhjhd/wXxEP7F2qcWHapZWl 4v76Uk+FonYC5Lx+gHxTM2V4RqLsSTN71KFiW25eMgNCWi11UZ7QY0GSsqFngD3iRP6qSnjhPx9mO fTDBMiJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8ZlP-00000001PHn-10o1; Mon, 21 Sep 2026 08:52:39 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8ZlM-00000001PHC-3Lsr for linux-arm-kernel@lists.infradead.org; Mon, 21 Sep 2026 08:52:38 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CE6F0175A; Mon, 21 Sep 2026 01:52:31 -0700 (PDT) Received: from arm.com (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0A63C3F86C; Mon, 21 Sep 2026 01:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1789980755; bh=CwLcddffhPz1q16TjfUQujTQsfAVYtH60K63Ky4xlqk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RB4Ur3YommdXR9xBY86laBzbrVcWw1+EetAV4WEc2Wk5F635xhMaNYBW6Nwezoxm5 OaKe3m1nHsIe3zYQEh3c46yvD69Ehz9V3vEELXk1jUrHtGyBIb+31EGqxn7OVm/dOX bUxkSS46JTLbKNIAZasFbySTDjhSQRFMHBolWKlo= Date: Mon, 21 Sep 2026 09:52:30 +0100 From: Catalin Marinas To: "Aneesh Kumar K.V (Arm)" Cc: linux-coco@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jason Gunthorpe , Greg KH , Jeremy Linton , Jonathan Cameron , Lorenzo Pieralisi , Mark Rutland , Sudeep Holla , Will Deacon , Steven Price , Suzuki K Poulose , Andre Przywara , Suzuki K Poulose Subject: Re: [PATCH v12 4/7] arm64: realm: Move Realm memory encryption ops to RSI code Message-ID: References: <20260921053807.354802-1-aneesh.kumar@kernel.org> <20260921053807.354802-5-aneesh.kumar@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260921053807.354802-5-aneesh.kumar@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260921_015237_057112_CA11BA59 X-CRM114-Status: UNSURE ( 9.43 ) X-CRM114-Notice: Please train this message. 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 Mon, Sep 21, 2026 at 11:08:04AM +0530, Aneesh Kumar K.V (Arm) wrote: > Realm memory encryption callbacks are CCA-specific. Keep the Realm callback > registration with the RSI initialization code instead of pageattr.c, which > only needs to provide the low-level page-attribute transition helper. > > Export __set_memory_enc_dec() within arm64 so the RSI code can wrap it with > the Realm-specific encrypt/decrypt callbacks and warning policy. > > No functional changes in this patch. > > Reviewed-by: Suzuki K Poulose Nit: Suzuki's still at arm ;) -- Catalin