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 17D7DC7EE26 for ; Tue, 23 May 2023 10:19:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+RyT4haE4uUyq/ASb/7bJSAxgXuRtXGcHqg8oEJZG/U=; b=5GjJfT0ZvjrhKI Db/1oW9FSerFtfqO/WQtx5FMN5OAzXB7B/DDOAe2RSSHCHX/8hZ9kxLoWF+YxfMyIZE7AkE5IIapB xjFkqd/V7CGfbL97AcV47ghvOapxcBLNsua7ASJkzRPi2Z6ReYaQ/y//lPP7oynf8I+AVZ7PXW3o4 2He6TZly6DIN9vI4MB43W7MkCO40TXuZISjcqzy7acEhu+Ga2x2nLqFYybi2lnT6DtYOpIHleujsC p1E2/PkUbC2Dou86ngoNZPGPQloFq5pDQhGCW78Abf4E59oFS2k8+LrbPYKLh1ry869FOWrr6h5VU qxFsuKMMmBdu3DtXaUDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1P6G-009oPO-0n; Tue, 23 May 2023 10:18:40 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1P6D-009oL2-3D for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 10:18:39 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D90A3618CF; Tue, 23 May 2023 10:18:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CA34C433EF; Tue, 23 May 2023 10:18:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684837114; bh=QpvcCky08LZ7m2ESjkii8rm59GSyQ3gaOmbK/Q+UTLc=; h=From:To:Cc:Subject:Date:From; b=p2kyKCeA+1H9SUF0OO0Vq5O0yBRQPnRmyx8m8Dgnahgqf+RV6pkpLkeAL2cFdDnHE Bk/l+oShre6ry8GhvxDjU71vq4v6i6CQZcHKWxnZ8tHm6Y/HnNDDMzWsTug/q9nqqZ MD8aobuFzvCb3UXtQCJxkIC6JM6KcTfDTpLQdFF9weRfG328vjC6CNNBRSWaiQekTK vU8Jc2+jQWPbDcZip0VpJ1swZcGLoAtjoBPbQ7tOw3m7mNmENmpCPXKmM/U+J+0U+S R427jZ5r51/KstKLJRhEOcpNrWA3kFzFuADaHmN4Y/NScDjK3nt+WJxscyxxJmfeeJ KUl/W0BKtAuVw== From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: Will Deacon , Quentin Perret , Marc Zyngier , Oliver Upton , James Morse , Alexandru Elisei , Suzuki K Poulose , Sudeep Holla , Sebastian Ene , Fuad Tabba , kvmarm@lists.linux.dev, kernel-team@android.com Subject: [PATCH v3 00/10] KVM: arm64: FF-A proxy for pKVM Date: Tue, 23 May 2023 11:18:17 +0100 Message-Id: <20230523101828.7328-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_031838_114189_06AF811D X-CRM114-Status: GOOD ( 13.72 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This is version three of the pKVM FF-A proxy series previously posted here: v1: https://lore.kernel.org/r/20221116170335.2341003-1-qperret@google.com v2: https://lore.kernel.org/r/20230419122051.1341-1-will@kernel.org Changes since v2 include: * Rename 'spmd_' functions per suggestion from Oliver * Add some more comments * Rebase onto 6.4-rc3 Cheers, Will Cc: Quentin Perret Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Alexandru Elisei Cc: Suzuki K Poulose Cc: Sudeep Holla Cc: Sebastian Ene Cc: Fuad Tabba Cc: kvmarm@lists.linux.dev Cc: kernel-team@android.com --->8 Fuad Tabba (1): KVM: arm64: Handle FFA_FEATURES call from the host Quentin Perret (1): KVM: arm64: pkvm: Add support for fragmented FF-A descriptors Will Deacon (8): KVM: arm64: Block unsafe FF-A calls from the host KVM: arm64: Probe FF-A version and host/hyp partition ID during init KVM: arm64: Allocate pages for hypervisor FF-A mailboxes KVM: arm64: Handle FFA_RXTX_MAP and FFA_RXTX_UNMAP calls from the host KVM: arm64: Add FF-A helpers to share/unshare memory with secure world KVM: arm64: Handle FFA_MEM_SHARE calls from the host KVM: arm64: Handle FFA_MEM_RECLAIM calls from the host KVM: arm64: Handle FFA_MEM_LEND calls from the host arch/arm64/include/asm/kvm_host.h | 1 + arch/arm64/include/asm/kvm_pkvm.h | 21 + arch/arm64/kvm/arm.c | 1 + arch/arm64/kvm/hyp/include/nvhe/ffa.h | 17 + arch/arm64/kvm/hyp/include/nvhe/mem_protect.h | 3 + arch/arm64/kvm/hyp/nvhe/Makefile | 2 +- arch/arm64/kvm/hyp/nvhe/ffa.c | 762 ++++++++++++++++++ arch/arm64/kvm/hyp/nvhe/hyp-main.c | 3 + arch/arm64/kvm/hyp/nvhe/mem_protect.c | 68 ++ arch/arm64/kvm/hyp/nvhe/setup.c | 11 + arch/arm64/kvm/pkvm.c | 1 + include/linux/arm_ffa.h | 8 + 12 files changed, 897 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/kvm/hyp/include/nvhe/ffa.h create mode 100644 arch/arm64/kvm/hyp/nvhe/ffa.c -- 2.40.1.698.g37aff9b760-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel