From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CFA92C0299; Fri, 26 Jun 2026 13:35:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782480939; cv=none; b=ocOKd5lxhCxxL1Qs4jiMmoSSbG+rKNM7BPam/hj0xp2WHuDmGo/cYcCnEB0Zhi9OXlJHRFbSu4wIhTrXTa45VgJopdxjDRvtBmt8kJZgl/GpHDLSjZxpGQ23y45SQexkHwWu7gll17oRuABjbLaql0CcvJwub+2gEVdwq2j2NDc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782480939; c=relaxed/simple; bh=kxzTDbHkEr6q+G5Bg7xpP9Sz4lyuVpfrnGtN6pLP2Bs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Cu1YwyeP+Rn575zJX9chIQkNB7pqnEstvnUi5sMQT8Sx69aNjkxVMWYtVl2s9IAwLse6tpX5HoduQZVftCqKJ+kZjpObYEdYskIIYZM9JmCum6TcrHfzFjnixtOkUxTbsqWSWvxnyX2xAd6fkBhnb2ifF0BEGghV5At4GeQTKGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VMeT0S1S; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VMeT0S1S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED28B1F000E9; Fri, 26 Jun 2026 13:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782480938; bh=NzHNiZRJs/ug1E3IvLOYIVWeeI5eXvwckhLoUOrOafc=; h=From:To:Cc:Subject:Date; b=VMeT0S1SvqLatI/IwMpCTMXnqFFBPetfizCnvFuQZvF9X2oV6NsBlc8otnciskJ7d DmNVg/W6U4lrOQdbceCKtUGpvtFWXu26YXitkFfqWlHbd2a0dx1fjEpKpNk2DygS7f YpgzuqzwwQWIHeWSTu0nYlIG6Oo8DKm8g8k+JZias+t0haj2M6qzxXr5E6C3rz8yrU DIEQLOuKqJdvJCUR2GQUG8icS+Cz9VM3949Oy6ga6wWJ/VxJ13Qiu63jPsKdznBIk6 T+9qCI8OMnE0Kl2SxClS3up52kDWYpoJRb/spn3gNoCFg+JJFrryiIuDV+oh9g5sYB J3dWlP/o9k95g== 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.98.2) (envelope-from ) id 1wd6iV-0000000GLsv-1HwZ; Fri, 26 Jun 2026 13:35:35 +0000 From: Marc Zyngier To: Paolo Bonzini Cc: Bradley Morgan , Fuad Tabba , Hyunwoo Kim , Oliver Upton , Weiming Shi , Will Deacon , Xuanqing Shi , Zhong Wang , Steffen Eiden , Joey Gouly , Suzuki K Poulose , Zenghui Yu , kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [GIT PULL] KVM/arm64 fixes for 7.2, take #1 Date: Fri, 26 Jun 2026 14:35:26 +0100 Message-ID: <20260626133526.817232-1-maz@kernel.org> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: pbonzini@redhat.com, include@grrlz.net, tabba@google.com, imv4bel@gmail.com, oupton@kernel.org, bestswngs@gmail.com, will@kernel.org, shixuanqing.11@bytedance.com, wangzhong.c0ss4ck@bytedance.com, seiden@linux.ibm.com, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Paolo, As predicted, here's another largeish set of fixes for KVM/arm64. A bunch of them are fairly benign (the PSTATE.IL stuff), but some are pretty annoying (vgic, MOPS) and are stable material. On the bright side, Fuad has volunteered to be an official reviewer. We really need people to engage with the reviewing process instead of simply dumping patches on us, as me and Oliver really can't be stretched much further. So many thanks Fuad for offering to help. I expect to be back next week with a similar delivery, as my Inbox keeps filling with this stuff... Please pull, M. The following changes since commit 1ee27dacbe5dc4def481794d899d67b0d4570094: Merge branch kvm-arm64/nv-mmu-7.2 into kvmarm-master/next (2026-06-12 09:29:34 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-7.2-1 for you to fetch changes up to d098bb75d14fde2f12155f1a95ec0168160867ce: KVM: arm64: account pKVM reclaim against the VM mm (2026-06-22 10:48:08 +0100) ---------------------------------------------------------------- KVM/arm64 fixes for 7.2, take #1 - Fix an accounting buglet when reclaiming pages from a protected guest - Fix a bunch of architectural compliance issues when injecting a synthesised exception, most of which were missing the PSTATE.IL bit indicating a 32bit-wide instruction - Another set of fixes addressing issues with translation of VNCR_EL2, including corner cases where the guest point that register at a RO page... - Don't warn when trapping accesses to ZCR_EL2 from an L2 guest, as that's not unexpected at all - Address a bunch of races with LPI migration vs LPIs being disabled - Fix a total howler of a bug combining FEAT_MOPS and NV, resulting in exception returning in the wrong place... - Coerce Fuad Tabba into a reviewer role, and may his Inbox catch fire! ---------------------------------------------------------------- Bradley Morgan (1): KVM: arm64: account pKVM reclaim against the VM mm Fuad Tabba (11): KVM: arm64: nv: Write ESR_EL2 for injected nested SError exceptions KVM: arm64: Sync SPSR_EL1 when injecting an exception into a pVM KVM: arm64: nv: Fix PSTATE construction on illegal exception return KVM: arm64: Add Fuad Tabba as a reviewer KVM: arm64: Set ESR_ELx.IL for injected undefined exceptions at EL2 KVM: arm64: Unconditionally set IL for injected undefined exceptions KVM: arm64: Unconditionally set IL for injected abort exceptions KVM: arm64: Set IL for injected FPAC exceptions during ERET emulation KVM: arm64: Set IL for emulated SError injection KVM: arm64: Set IL for nested SError injection KVM: arm64: Set IL in fake ESR for pKVM memory sharing exit Hyunwoo Kim (1): KVM: arm64: vgic: Check the interrupt is still ours before migrating it Marc Zyngier (1): KVM: arm64: vgic: Handle race between interrupt affinity change and LPI disabling Oliver Upton (6): KVM: arm64: nv: Drop bogus WARN for write to ZCR_EL2 KVM: arm64: nv: Respect read-only PFN when mapping L1 VNCR KVM: arm64: nv: Inject SEA if kvm_translate_vncr() can't resolve PFN KVM: arm64: nv: Re-translate VNCR before injecting abort KVM: arm64: nv: Inject SEA if guest VNCR isn't normal memory KVM: arm64: nv: Mark VM as bugged for unexpected VNCR abort Weiming Shi (1): KVM: arm64: nv: Fix SPSR_EL2 restore in kvm_hyp_handle_mops() MAINTAINERS | 1 + arch/arm64/include/asm/kvm_nested.h | 8 ++ arch/arm64/kvm/at.c | 8 -- arch/arm64/kvm/emulate-nested.c | 37 +++++-- arch/arm64/kvm/hyp/include/hyp/switch.h | 11 ++- arch/arm64/kvm/hyp/nvhe/pkvm.c | 3 +- arch/arm64/kvm/hyp/nvhe/sys_regs.c | 3 +- arch/arm64/kvm/inject_fault.c | 18 +--- arch/arm64/kvm/nested.c | 164 ++++++++++++++++---------------- arch/arm64/kvm/pkvm.c | 2 +- arch/arm64/kvm/vgic/vgic.c | 20 ++-- 11 files changed, 149 insertions(+), 126 deletions(-)