From patchwork Wed Oct 2 14:16:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Price X-Patchwork-Id: 13819861 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 AE15CCF6D2C for ; Wed, 2 Oct 2024 14:18:52 +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=SLv/sbMHqr6+SFzhfoq+C1Q32nDsL+wSe6hamKcyRUg=; b=ex190es1CgdboCIFxsifRkNo8P 52sx8tIrBJDBRpzaSPSI6FNB42y8sCUOPPW/4vd2IAkxoLdr96p1CUOqI2xVBOy4arngJmAD9J0XW YUu2ueZJsTm8jwJHdquyRU/QEhag2+TVPjQhBtHom/aGKC3UlAXEhUj0Ck/HCTNiJ538vPz0sd3MP ackhCoL5DEjuWf5ED1cmolZN4UWr0u7lySL07MsjqyThNDu6GaVaMTaUF/A6i7r7btajwW41QklkA YhIZ1pooYIkPnQvejJ9qY1x9nLxI9skg5p5pZtDTy1RPkWHI03SeqMFH1VRtNMqnumDLHzvwX7N0b sRWUhOhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sw0Bd-00000006LaW-3p7S; Wed, 02 Oct 2024 14:18:42 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sw0AO-00000006LKo-1Z1D for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 14:17:25 +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 14BE6339; Wed, 2 Oct 2024 07:17:53 -0700 (PDT) Received: from e122027.arm.com (unknown [10.57.64.205]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 927363F58B; Wed, 2 Oct 2024 07:17:21 -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 , Michael Kelley Subject: [PATCH v2 0/2] irqchip/gic-v3-its: Mark ITS tables as decrypted Date: Wed, 2 Oct 2024 15:16:28 +0100 Message-Id: <20241002141630.433502-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-20241002_071724_479632_B595DB01 X-CRM114-Status: GOOD ( 10.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 These two patches were 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. [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 | 154 ++++++++++++++++++++++++++----- 1 file changed, 129 insertions(+), 25 deletions(-)