From patchwork Thu Jun 9 12:12:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 12875479 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 3C136CCA473 for ; Thu, 9 Jun 2022 12:18:55 +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=igFptQ1YAw9O7840aWn0Ltla4JHZ2sLAx3WQtuoDcJs=; b=LfZoBoS6tmCQDW mMMq8kyy61FqyRH4j/p6QCSW2ndI5DEhI53xjTk9pPcJIIAY43HhUpiQvzaszvoChiTtYaatkLfhW LmIJyhUys6EOpwA0eYsCmk4j6eo6rN4UHtewoQJQ5Cb00VCW/fMjc4NXRoaGEc8IWoEPWgld3Oygd GMSERaEewBEIUlbOhqSgpvKZETzsekUGXeEcT3puq6m8Gt93X0YBDj1P/M2kc9iuP4+vr1Vk2E58W KUkWzAAalJkZLLN6RnvdMa4g6wXPguFaep8CGMv6JuJaQrkSQaJS58K+fLmqe2/dANeMzGbHvTOrk axX4A5KoyZuyrJP8kodg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzH6c-001fFI-Fq; Thu, 09 Jun 2022 12:17:42 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzH1c-001clg-F3 for linux-arm-kernel@lists.infradead.org; Thu, 09 Jun 2022 12:12:34 +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 ams.source.kernel.org (Postfix) with ESMTPS id D79FFB82D50; Thu, 9 Jun 2022 12:12:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EF18C3411D; Thu, 9 Jun 2022 12:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654776749; bh=nkrdzTl27ZX5FsRH9FRkRpM8Q0maYGT0vYT7F3D+ysY=; h=From:To:Cc:Subject:Date:From; b=l5MCbUfVka0iAhpTNF/yDW/bmtdbIbhYZr4QODS/KhOn44H6NTFleyN5DVKzO1deg W1uF5NlLM7FP4RH86nZ7ZX0CkE+U8u+9wvKqCxBdhVvbrRFPE2XYp0tB/opRryfhjR V0IqcBRuiUv94bM9hrObL2uhZj1vXPyq+l6PDoOBgm847eIIAPi0S2czPN0pVb/NSy YQFFApYZHqbHLU0rMk67EoANigbSNmqtqK96wepWphvrIZrUegfGe3gw3SGlEzmx9w 8TwuyDdDpYVO6PFTTCQoaZbxfqlhilNv2Xx8pSzcKyfQzQsf9vP5jd3+5vwEAWTbzo n+QcXnB2wPTjQ== From: Will Deacon To: kvmarm@lists.cs.columbia.edu Cc: Will Deacon , Marc Zyngier , Alexandru Elisei , kernel-team@android.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/6] KVM/arm64: Minor/trivial fixes from pKVM mega-patch Date: Thu, 9 Jun 2022 13:12:17 +0100 Message-Id: <20220609121223.2551-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-20220609_051232_687740_1D53B2F5 X-CRM114-Status: GOOD ( 11.62 ) 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 Hi folks, These six KVM/arm64 patches are very minor fixes (including "fixes" to comments) which were previously posted as part of the pKVM mega-patch but which can be merged independently of the rest of that. Marc -- I'm not sure whether it's even worth taking these for 5.19, but here they are so you can have a look and decide yourself. Series based on 5.19-rc1. Cheers, Will Cc: Marc Zyngier Cc: Alexandru Elisei Cc: kernel-team@android.com Cc: kvmarm@lists.cs.columbia.edu Cc: linux-arm-kernel@lists.infradead.org --->8 Marc Zyngier (2): KVM: arm64: Handle all ID registers trapped for a protected VM KVM: arm64: Drop stale comment Will Deacon (4): KVM: arm64: Return error from kvm_arch_init_vm() on allocation failure KVM: arm64: Ignore 'kvm-arm.mode=protected' when using VHE KVM: arm64: Extend comment in has_vhe() KVM: arm64: Remove redundant hyp_assert_lock_held() assertions .../admin-guide/kernel-parameters.txt | 1 - arch/arm64/include/asm/kvm_host.h | 5 --- arch/arm64/include/asm/virt.h | 3 ++ arch/arm64/kernel/cpufeature.c | 10 +---- arch/arm64/kvm/arm.c | 10 ++++- arch/arm64/kvm/hyp/nvhe/mem_protect.c | 4 -- arch/arm64/kvm/hyp/nvhe/sys_regs.c | 42 +++++++++++++++---- 7 files changed, 46 insertions(+), 29 deletions(-)