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 48121CA0FF6 for ; Fri, 30 Aug 2024 13:54:10 +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:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=o5HMxcygVBlGz3WXjRgya9ZW87/22JgY2pUzvt4CMYA=; b=NDZkr7uAIqyPC6N+qY/dX0axiE u5rXNqgmW/q+1VRcHzkg1mb6+Na/mhBMhPudT7sh3zo1+XQHdzbnm5rv/Mi/UpimAKgZaEMv52f3S g9pdjnsHqnqcjUd33VpmijoAmj0fJBrkIXCQhbao7Uq4BahHOKXqLkWOQXWLKEaBa6iS8/hN+Ps/X hao9YbOKVa4GlqvctBI2p+j/zS/Lib5YEO4ynKj/p4piubxkrTkvpNG/L4sOQYBb3FvTxOww8A1Ya aL7yUSbdHzqL5ayfUDsw6LsGzmcraUxYGzVbUsDtki35TVGoUbTSbEgMgyfCeeGsUKs/PyUVZjQnO X88U0gjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk24e-00000006Uf0-3phb; Fri, 30 Aug 2024 13:54:00 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk23i-00000006UPB-2iUo for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 13:53:04 +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 F2DEC1063; Fri, 30 Aug 2024 06:53:24 -0700 (PDT) Received: from [10.1.30.22] (e122027.cambridge.arm.com [10.1.30.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F2E873F762; Fri, 30 Aug 2024 06:52:56 -0700 (PDT) Message-ID: <0b672910-34c0-4ed0-8828-c06571737e72@arm.com> Date: Fri, 30 Aug 2024 14:52:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/7] Support for running as a pKVM protected guest To: Will Deacon , linux-arm-kernel@lists.infradead.org Cc: Sudeep Holla , Catalin Marinas , Lorenzo Pieralisi , Suzuki Poulose , Oliver Upton , Marc Zyngier , linux-coco@lists.linux.dev References: <20240830130150.8568-1-will@kernel.org> From: Steven Price Content-Language: en-GB In-Reply-To: <20240830130150.8568-1-will@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_065302_806584_FBD23835 X-CRM114-Status: GOOD ( 16.63 ) 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 30/08/2024 14:01, Will Deacon wrote: > Hi all, > > This is version two of the series previously posted here: > > https://lore.kernel.org/r/20240730151113.1497-1-will@kernel.org > > Changes since v1: > * New patch allocating additional hypercalls for future pKVM usage > > It looks like the CCA series is now using some of the pieces here [1], > so it would be great to merge this with an Ack from the kvmarm > maintainers. Indeed, for what it's worth, patches 3 and 5 are both: Reviewed-by: Steven Price Thanks, Steve > Cheers, > > Will > > [1] https://lore.kernel.org/r/20240819131924.372366-1-steven.price@arm.com > > Cc: Sudeep Holla > Cc: Catalin Marinas > Cc: Lorenzo Pieralisi > Cc: Suzuki Poulose > Cc: Steven Price > Cc: Oliver Upton > Cc: Marc Zyngier > Cc: linux-coco@lists.linux.dev > > --->8 > > Marc Zyngier (1): > firmware/smccc: Call arch-specific hook on discovering KVM services > > Will Deacon (6): > drivers/virt: pkvm: Add initial support for running as a protected > guest > arm64: mm: Add top-level dispatcher for internal mem_encrypt API > drivers/virt: pkvm: Hook up mem_encrypt API using pKVM hypercalls > arm64: mm: Add confidential computing hook to ioremap_prot() > drivers/virt: pkvm: Intercept ioremap using pKVM MMIO_GUARD hypercall > arm64: smccc: Reserve block of KVM "vendor" services for pKVM > hypercalls > > Documentation/virt/kvm/arm/hypercalls.rst | 98 ++++++++++++++ > arch/arm/include/asm/hypervisor.h | 2 + > arch/arm64/Kconfig | 1 + > arch/arm64/include/asm/hypervisor.h | 11 ++ > arch/arm64/include/asm/io.h | 4 + > arch/arm64/include/asm/mem_encrypt.h | 15 +++ > arch/arm64/include/asm/set_memory.h | 1 + > arch/arm64/mm/Makefile | 2 +- > arch/arm64/mm/ioremap.c | 23 +++- > arch/arm64/mm/mem_encrypt.c | 50 +++++++ > drivers/firmware/smccc/kvm_guest.c | 2 + > drivers/virt/coco/Kconfig | 2 + > drivers/virt/coco/Makefile | 1 + > drivers/virt/coco/pkvm-guest/Kconfig | 10 ++ > drivers/virt/coco/pkvm-guest/Makefile | 2 + > drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c | 127 ++++++++++++++++++ > include/linux/arm-smccc.h | 88 ++++++++++++ > 17 files changed, 437 insertions(+), 2 deletions(-) > create mode 100644 arch/arm64/include/asm/mem_encrypt.h > create mode 100644 arch/arm64/mm/mem_encrypt.c > create mode 100644 drivers/virt/coco/pkvm-guest/Kconfig > create mode 100644 drivers/virt/coco/pkvm-guest/Makefile > create mode 100644 drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c >