From patchwork Thu Nov 3 15:05:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Roberts X-Patchwork-Id: 13030142 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 0885EC4321E for ; Thu, 3 Nov 2022 15:06:34 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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=MrKuKVPOBSadvQIj3SYDnrFr92ZAHW6Az4ilgY8LJlk=; b=2KxpT1YzEWXki0 gKwaCmYCDqkr7XOO8TNBTnVeJiHKo1stUpnvAKtjGgB7vFDELD9ZJ9Hvj+RBQc87mXm90nnDG/CDE KGXH5pbTQXgFM9KbiqRiKcf04vLhsLZXlQsVfV8g/MP/6xtLJjqvHn44uHMd+gDPU7U81vkAMWNG9 ToUsDPxwi5UEAIO+4DhgABurmZxc8v9n1S4Ybxu6ZqdvfUFgPT13F/BypLvF/nako48XBS3yLEfVK fnEMZ65RIOVumCI/MQty5d3hzpGqhA62Z5wg/JlnNFZBUvwOhjPeMw53oCF/lBhwU35zoz3Z39Lpv Q47tRQ7eBZZvrKm7v08g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqbmf-000D0G-JI; Thu, 03 Nov 2022 15:05:33 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqbmT-000Cv3-EI for linux-arm-kernel@lists.infradead.org; Thu, 03 Nov 2022 15:05:23 +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 27D9D1FB; Thu, 3 Nov 2022 08:05:20 -0700 (PDT) Received: from e125769.cambridge.arm.com (e125769.cambridge.arm.com [10.1.196.169]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0FFB13F5A1; Thu, 3 Nov 2022 08:05:11 -0700 (PDT) From: Ryan Roberts To: Marc Zyngier Cc: Ryan Roberts , James Morse , Alexandru Elisei , Suzuki K Poulose , Oliver Upton , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu Subject: [PATCH v1 0/2] KVM fixes for exotic configurations Date: Thu, 3 Nov 2022 15:05:05 +0000 Message-Id: <20221103150507.32948-1-ryan.roberts@arm.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_080521_612801_15A83FCE X-CRM114-Status: UNSURE ( 5.44 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org I've been adding support for FEAT_LPA2 to KVM and as part of that work have been testing various (84) configurations of HW, host and guest kernels on FVP. This has thrown up a couple of pre-existing bugs, for which the fixes are provided. Thanks, Ryan Ryan Roberts (2): KVM: arm64: Fix kvm init failure when mode!=vhe and VA_BITS=52. KVM: arm64: Fix PAR_TO_HPFAR() to work independently of PA_BITS. arch/arm64/include/asm/kvm_arm.h | 6 +++++- arch/arm64/kvm/arm.c | 20 +++----------------- arch/arm64/kvm/mmu.c | 28 +++++++++++++++++++++++++++- 3 files changed, 35 insertions(+), 19 deletions(-) --- 2.17.1