From patchwork Thu Oct 3 20:37:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 13821556 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 BD617CF34AD for ; Thu, 3 Oct 2024 20:39:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=9GIHjQrT6lWuVd+R+D+rMnGCDSJf/SzX0p9dKqnxxMY=; b=p02Z75ORtIoxG7HWDkiuROKh0n aRDenTdO4Lgk0tcVazPVI3PVmqrZHW848gHC2pLIII7whZaaByrIlLXO8HoHVgBibz72TIwVoIw2K fSatcxo6d1PCdAC8hC2FtR6wdT1Jpq8HTNhzHjajuW37qw53GE6SCu0MwriDT++t9Q1eP64FWauXh v55OthiABM9UDxkSNRRxQIVk+tPr5pD2Hq63EP+3PcGHHw36K0cFGqyaJZXw3x58p71tsw2PFyE+r lITnsTRBq6tcYLeBbSx8J1K94v2qtVwDynshzrh4cN+eM1hAujxRHJYmRqEKpt0AyIEmma5CVmMPc 1k3S4tMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swSbB-0000000AJLU-1PkQ; Thu, 03 Oct 2024 20:38:57 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swSZu-0000000AJFw-3hxd for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 20:37:40 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id B99645C5E48; Thu, 3 Oct 2024 20:37:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A6A8C4CEC5; Thu, 3 Oct 2024 20:37:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1727987857; bh=8T6eykxd6XDU5qs08iAO7QM6z+RQFEJlVhLiF5MG0UI=; h=From:To:Cc:Subject:Date:From; b=pQS8+bexM6YUntvxK7zqyuqMa8eY2VkKi8f8MLEN5wDlnzbYli9UoSlIAMW6xjfz8 vbTXTy4RM1ejkNNVIaKCdVD4fZeSlYCnoJfsABjaaVLkJ2rZ7Ys9fDpSyM8bjm0fws TJbcvCbjx2azEdUHepy/CCP6UorLo0GrBP38DO46QZ82amN+0qBe02Us8zq3/yvhL6 bJsBxVpUfIsxA/cXiaUV1jybcESvikfLrb8U7+MINPPTzN4ATr+xj2OglLZp/gBeKE m8tLjRRiV/heCkwkn/zu/6136s5HcmejOb9ZAWULFFenrP2S2BuCd4Z9w99QuY7xK2 Euvx0wyoXLwXg== Received: from sofa.misterjones.org ([185.219.108.64] helo=valley-girl.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1swSZr-00HX6X-3Z; Thu, 03 Oct 2024 21:37:35 +0100 From: Marc Zyngier To: Paolo Bonzini Cc: Catalin Marinas , Fuad Tabba , Joey Gouly , Mark Brown , Oliver Upton , Suzuki K Poulose , Vincent Donnefort , Will Deacon , Zenghui Yu , James Morse , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org Subject: [GIT PULL] KVM/arm64 fixes for 6.12, take #1 Date: Thu, 3 Oct 2024 21:37:23 +0100 Message-Id: <20241003203723.2062286-1-maz@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: pbonzini@redhat.com, catalin.marinas@arm.com, tabba@google.com, joey.gouly@arm.com, broonie@kernel.org, oliver.upton@linux.dev, suzuki.poulose@arm.com, vdonnefort@google.com, will@kernel.org, yuzenghui@huawei.com, james.morse@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_133739_027449_BF66299D X-CRM114-Status: GOOD ( 13.05 ) 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 Paolo, Here's the first set of fixes for 6.12. We have fixes for a couple of pretty theoretical pKVM issues, plus a slightly more annoying fix for the feature detection infrastructure (details in the tag below). I expect to have a few more fixes in the coming weeks. Oh, and Joey is now an official reviewer, replacing James Please pull, M. The following changes since commit 9852d85ec9d492ebef56dc5f229416c925758edc: Linux 6.12-rc1 (2024-09-29 15:06:19 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.12-1 for you to fetch changes up to a1d402abf8e3ff1d821e88993fc5331784fac0da: KVM: arm64: Fix kvm_has_feat*() handling of negative features (2024-10-03 19:35:27 +0100) ---------------------------------------------------------------- KVM/arm64 fixes for 6.12, take #1 - Fix pKVM error path on init, making sure we do not change critical system registers as we're about to fail - Make sure that the host's vector length is at capped by a value common to all CPUs - Fix kvm_has_feat*() handling of "negative" features, as the current code is pretty broken - Promote Joey to the status of official reviewer, while James steps down -- hopefully only temporarly ---------------------------------------------------------------- Marc Zyngier (2): KVM: arm64: Another reviewer reshuffle KVM: arm64: Fix kvm_has_feat*() handling of negative features Mark Brown (1): KVM: arm64: Constrain the host to the maximum shared SVE VL with pKVM Vincent Donnefort (1): KVM: arm64: Fix __pkvm_init_vcpu cptr_el2 error path MAINTAINERS | 2 +- arch/arm64/include/asm/kvm_host.h | 25 +++++++++++++------------ arch/arm64/kvm/hyp/include/hyp/switch.h | 2 +- arch/arm64/kvm/hyp/nvhe/hyp-main.c | 12 +++++++----- arch/arm64/kvm/hyp/nvhe/pkvm.c | 6 ++++-- 5 files changed, 26 insertions(+), 21 deletions(-)