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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D792C433F5 for ; Tue, 5 Oct 2021 11:40:16 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 52F6E610A2 for ; Tue, 5 Oct 2021 11:40:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 52F6E610A2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=Io55w3XKCLiJR65sfL2j3NE/8s/znQxp6d9QoMmrcQs=; b=HhUL0EE2/k6s15 UOogmhyP9kAR9dmftzJcOqSYqoGh6xE/DGnQ3EYOqEIgmtE/6aROVt8iyrcizgjhVbEkO85/k8FL/ kLkeu74L85BB0oWrjctUx/4GFf8eGaHfRuB8w008a9dW8iYTtvqw2lmT4JRLnZeurLLO0B19n2Bus T3Po8HgYrQzXeRNHIvll1NJj9VE+w33VPPTlYfjYNtcplOUH3G3TYv2MlIzfEmLXnyCAnaj2dZMX2 L+RHwIhWD3wrHsbdLZZkjAC6fJ0MP4dFmmzIuEoPpi/jAuPrM1AESEbHV58id8Sm80FnMl/P1s51z YXSE6mi33HaE/yeg5I9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXilQ-00A9qD-Mc; Tue, 05 Oct 2021 11:37:40 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXilM-00A9ol-A7 for linux-arm-kernel@lists.infradead.org; Tue, 05 Oct 2021 11:37:37 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 58EF66137D; Tue, 5 Oct 2021 11:37:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633433855; bh=8rC7TkQRI4Ykl4Vk7FqeIKTuwSqHJtas0KsHtaKv2RA=; h=From:To:Cc:Subject:Date:From; b=qf3ONviZwH7xPPW+001QpT2TlJ1v5JzwF1oCV0QEtt9T/Ov4w9mgkl97k619XUpHE HOw/2B0nLLeXtxBst+tLtvRAuEiq1Y+/zR/HtpmLTXE3R6Q0pHowoaCPUdofzuj1hX 5xepSnXlFJ8Oqm4uKmCWSv4uatwCn3RUEJ+XsXceFezs2gIu38adcqghmFvR0uT/xC JLRQu+uZenbpbwRYhenP6XfWk79/dVxdzCDI+Q1z8v+JcOhMtMOw566Mp0XbwUswPo 3z3/giPvKcv5nkhenncAI8Un0cHwRuOfuwiacgRJUyhnTr/+nUoeT5XQK+rqUkSnRU 4+tRLJcD32dtw== From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: Will Deacon , Marc Zyngier , Quentin Perret , Catalin Marinas , Alexandru Elisei , Suzuki K Poulose , Mark Rutland , kvmarm@lists.cs.columbia.edu Subject: [PATCH v2 0/5] KVM: arm64: Restrict host hypercalls when pKVM is enabled Date: Tue, 5 Oct 2021 12:37:16 +0100 Message-Id: <20211005113721.29441-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-20211005_043736_391451_CE50B480 X-CRM114-Status: UNSURE ( 8.55 ) 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: , 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 two of the patches I previously posted here: https://lore.kernel.org/r/20210923112256.15767-1-will@kernel.org Changes since v2 include: - Add a comment about pkvm_prot_finalize() returning -EPERM - Fixed ordering of hypercalls in 'host_hcall' array - Added reviewed-by tags Patches based on -rc2. Feedback welcome. Cheers, Will Cc: Marc Zyngier Cc: Quentin Perret Cc: Catalin Marinas Cc: Alexandru Elisei Cc: Suzuki K Poulose Cc: Mark Rutland Cc: kvmarm@lists.cs.columbia.edu --->8 Will Deacon (5): arm64: Prevent kexec and hibernation if is_protected_kvm_enabled() KVM: arm64: Reject stub hypercalls after pKVM has been initialised KVM: arm64: Propagate errors from __pkvm_prot_finalize hypercall KVM: arm64: Prevent re-finalisation of pKVM for a given CPU KVM: arm64: Disable privileged hypercalls after pKVM finalisation arch/arm64/include/asm/kvm_asm.h | 43 ++++++++++--------- arch/arm64/kernel/smp.c | 3 +- arch/arm64/kvm/arm.c | 61 ++++++++++++++++++--------- arch/arm64/kvm/hyp/nvhe/host.S | 26 ++++++++---- arch/arm64/kvm/hyp/nvhe/hyp-main.c | 37 +++++++++++----- arch/arm64/kvm/hyp/nvhe/mem_protect.c | 3 ++ 6 files changed, 113 insertions(+), 60 deletions(-) -- 2.33.0.800.g4c38ced690-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel