From patchwork Thu Sep 5 09:17:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Price X-Patchwork-Id: 13792135 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 3CF73CD5BA6 for ; Thu, 5 Sep 2024 10:31:07 +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: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=sBXvuyB8vmHp0kz4vLoiSvBP/EU+rzNpBaVZzCA4Pj0=; b=V1dj219hAETbh19sL/5sXERTP+ 9xdWA4eNGkqNQIIDSxZQpYKK3NE4/ydyJPnaMnit/891sVQl+BR7k4pDZ1hBsXbB7Qf+qpdw5mk03 rgsfQigUa77qhW+ohJlFV5NzUCB6X2gNhHZygBDt32LOPfiJ7HcAoeKPGvKKCCIf5sZrI/wce9ysD Vyt8y5xhGRwaR2v/ub0cuvb5j151GZGwtzGvwOX3EvmTLqdazvopyp1KhHCYDLIAJwKpk3FzS47Lv TeF1jZeH9bgGw55dcVViS36z8Z4dqi5TL0Be54Un0/LuYONND+o++DrmcRC8ET9X0V2L9cENF9x/b k4zpKTvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sm9lT-00000007yAo-44di; Thu, 05 Sep 2024 10:30:59 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sm8co-00000007jX1-1xg9 for linux-arm-kernel@bombadil.infradead.org; Thu, 05 Sep 2024 09:17:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=sBXvuyB8vmHp0kz4vLoiSvBP/EU+rzNpBaVZzCA4Pj0=; b=JAHjtGJbRb88irTlzl4LEBSeev VLi4n97aCeIpCJaP0FnJhZJ0gMIhjuHNmfuoFrGfRgnGW9aeV++BsFmK1momTvHgrgrl2+hP0q+vM EgoZEP/nh0cyeowIOTgyOzjV7r+f02LJcbEBw7M3u59xeEVYwpNOPFtjELK7erh4QcqHIjyKuYx87 rhZ4EazbJS9WirPNvptrjA+1v4bJWZ79uEis8NJIGCpmB/tvBc4uUiLpMPHCd3VPuKOi/23qMeABB 6KIQk/T76b/aFjcysoMOaibiO/FSWCmMmySrE+p+SvpjAOqwjeB7E/sVgBdlENxkE6epkkZAtoKbr Oh5JcWRQ==; Received: from foss.arm.com ([217.140.110.172]) by desiato.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sm8cl-00000000Rwx-0FN3 for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2024 09:17:57 +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 ACAECFEC; Thu, 5 Sep 2024 02:18:17 -0700 (PDT) Received: from e122027.cambridge.arm.com (e122027.cambridge.arm.com [10.1.29.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4588B3F73F; Thu, 5 Sep 2024 02:17:49 -0700 (PDT) From: Steven Price To: Marc Zyngier , Thomas Gleixner Cc: Steven Price , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Will Deacon , Suzuki K Poulose Subject: [PATCH 0/2] irqchip/gic-v3-its: Mark ITS tables as decrypted Date: Thu, 5 Sep 2024 10:17:36 +0100 Message-Id: <20240905091738.28544-1-steven.price@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240905_101755_287262_0FA56ACC X-CRM114-Status: GOOD ( 10.51 ) 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 These two patches are taken from the larger series to support running Linux as a realm guest in CCA[1]. They add support to the GIC for allocating the ITS pages such that they are decrypted so that the host can access then for emulation purposes. Note that there are likely to be future changes to make this more configurable in the future, as it's possible that in a future configuration a protected component within the realm could take on the emulation responsibilities ('Planes support')[2]. But this is a good building block for the future. Sorry for the delay in posting this as a separate series! [1] https://lore.kernel.org/r/20240819131924.372366-1-steven.price%40arm.com [2] https://lore.kernel.org/r/beff9162-e1ba-4f72-91ea-329eaed48dbc%40arm.com Steven Price (2): irqchip/gic-v3-its: Share ITS tables with a non-trusted hypervisor irqchip/gic-v3-its: Rely on genpool alignment drivers/irqchip/irq-gic-v3-its.c | 142 +++++++++++++++++++++++++------ 1 file changed, 117 insertions(+), 25 deletions(-)