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 X-Spam-Level: X-Spam-Status: No, score=-16.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BD2EC4338F for ; Thu, 12 Aug 2021 10:02:39 +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 4147D6109F for ; Thu, 12 Aug 2021 10:02:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4147D6109F 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=h+EIa8xn1qxzb2J9H9fUKcxTdcl0LXR0zVy603uFf58=; b=AxxT9QxBrkGHE1 TGNdeYxWJTFPO7A3wbBOLZ0/wYPSsGfprU0yLqln8R9jkKuce51vQ5IDWMA6q/Rf0BW4tMGHW/0Xe HpLBxuTGQFwpf1gz4XUAnBDddmRMqKt9Z0i0KNlEgMqlR2A+Bw7APb3htx1JubRsNNyIt6aowK1bE ou3Zxm/GDAGsx3VLeZX+Ldcw0IsgySr1X21fxEHt+b4BzLWx0kDCqLlxvU3pwNkpQsD0DOueezFlT EANQ9eq2iIqtfqcvHuMMkVGt8FXK+YEKjoeRNQs04T0OxdHr0xV0WdSwOG2Z/lXEEPHJxQo3mZz7Z plo421NPRv57s5w7TsvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE7V7-009aPY-Nk; Thu, 12 Aug 2021 09:59:49 +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 1mE7V4-009aOy-Hq for linux-arm-kernel@lists.infradead.org; Thu, 12 Aug 2021 09:59:47 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id B160260FC4; Thu, 12 Aug 2021 09:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628762386; bh=xhJTzirtcBObaMNh3L8mgpZhwBRzbdzx21Im4hyotWo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mGbsEoq/0jOgKOOuYwiObaj/Yo1csUtEQC9KIgPGavdArcPFxAVMaF64mVewbSu2U 5IvPkIRglcC07FiTaV5o5QV5Y4vOYO32N9OCwyusHfz6Qui+vqAC8mKzbPXTbClvn+ VC8W2TF9pQ0fYvndiFmJBhpOAsfboDlhkgEn31ixaruKarsaaq4k1CPOWjJHZstUa3 WD2ij1Cty5+dsTXVpRKWyMwFxBIZDqD25B8nesZQNBFf+VhhTdpvSKQNtJrOpazIPc H82NKgpZYnDdqm7jx2xeAin1ZZd3biXCmoSLrzqyHbzm/Q+tgkaxOzdeYT9DI0Xmqa OxOYwQOimZN3Q== Date: Thu, 12 Aug 2021 10:59:40 +0100 From: Will Deacon To: Fuad Tabba Cc: kvmarm@lists.cs.columbia.edu, maz@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, christoffer.dall@arm.com, pbonzini@redhat.com, drjones@redhat.com, qperret@google.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-team@android.com Subject: Re: [PATCH v3 15/15] KVM: arm64: Restrict protected VM capabilities Message-ID: <20210812095938.GM5912@willie-the-truck> References: <20210719160346.609914-1-tabba@google.com> <20210719160346.609914-16-tabba@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210719160346.609914-16-tabba@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_025946_649661_3FF3927F X-CRM114-Status: GOOD ( 11.00 ) 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 On Mon, Jul 19, 2021 at 05:03:46PM +0100, Fuad Tabba wrote: > Restrict protected VM capabilities based on the > fixed-configuration for protected VMs. > > No functional change intended in current KVM-supported modes > (nVHE, VHE). > > Signed-off-by: Fuad Tabba > --- > arch/arm64/include/asm/kvm_fixed_config.h | 10 ++++ > arch/arm64/kvm/arm.c | 63 ++++++++++++++++++++++- > arch/arm64/kvm/pkvm.c | 30 +++++++++++ > 3 files changed, 102 insertions(+), 1 deletion(-) This patch looks good to me, but I'd be inclined to add this to the user-ABI series given that it's really all user-facing and, without a functional kvm_vm_is_protected(), isn't serving much purpose. Cheers, Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel