From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796467288; b=hGnqX8Owi4ijDXSnfX7PhWg56fmYSzdCRhO8p9sOFfYNWDrtA4Gj4HXMkST+7SWeXwY5 AHGqBnaqGz1abVmUH49QT8yc5ND+9Qrvpxr8NHmqSj9o8Z/k7yVfARFeeJuNwUdCv9J5m L3wRBJGsxikWu7ZA1h+llhn1E9cjVrTuU/8BsLlcW8BypvK5ZkwW3LtFcYLw8kAimtZ3l NfiD9PXixzTyl6/aR3apRpOfKQbPwPqhZ5CDHdqrAB0WoQ2xvlwMUqEXhS7cV28JW3JU+ /I14mOQVsZ37DgdSNi7yHEYwW/fvk/Tz+CXHpXMZCMM8tRZZ3BwHhh53tjeXyxnzR/Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796467288; h=Received:DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:MIME-Version:Content-Transfer-Encoding:X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To:X-SA-Exim-Mail-From:X-SA-Exim-Scanned; bh=SScoD4R7BowqYZ8Ur1nEhiisStO+glGrvZZO34Y5o9Q=; b=M/swz5McYfFp27DfdGRoK464kZFXh32h0tljxsC6fPPBwFmq4F+YLYdc03PARj5YK12S jsYWu/OUnwRDtBJZnlZ9Q+GzXXpwnV9/Havr2IcaFNMlEbXvbYMQtE5W5IStjKIkZ+11T 9MBWbTwB67lRWTRyq9Cj9pVfdk6tXc9quNcn7imwugqn1pTPkxvmVSm50Im7AWbvY0az9 Rpbk+l3obDxVEXtZGp37qxILD289ZqVbhG/eMmSQLoKac9O/b4Z63M71Ya5WHXtAkjdKz 394S14dITTdUCAhvCuDvrVTZpyksc4kFPK++2ANZILzOGTl4OWwDIMuHuKGugj0EHKw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dJB2PWKI; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64157606A335; Sat, 5 Dec 2026 10:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dJB2PWKI Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A0CF1F00A10; Sat, 5 Dec 2026 10:41:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796467288; bh=SScoD4R7BowqYZ8Ur1nEhiisStO+glGrvZZO34Y5o9Q=; h=From:To:Cc:Subject:Date; b=dJB2PWKI27cV1fOD2UkUEww7xCvKuPLOOcCeO3KjbisvE4d+JJtmhClwUH3a+rLXz fFWpjUL3J+ga12sndhkPb4YwWObysy/5aTv3TYjLrOXzVCdtAXjsueRfvXgvnFcy2h McBldcm6gdjLywyNG5qOfi0r7pkGA4JdEwiJazI1uNAb2zqkhHu+l9D6x0wu4SkQrS IJw1jmG+OZ4aFq3vsT4RLJA1nJlYZR0L+u2XNbYkOTNjU0pbHBwi5fYvgmGkHTuegK 2dftY+qgCubTjCPNzpBuYA6CwSWUMONrmb3eBWqpDIIjymYGuDjbT6YIK+KOUKceG/ lnel2EZ6+tGTQ== 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 1xZnCn-00000007USJ-2oAw; Sat, 05 Dec 2026 10:41:25 +0000 From: Marc Zyngier To: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Steffen Eiden , Joey Gouly , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Fuad Tabba , Paolo Bonzini , stable@vger.kernel.org Subject: [PATCH 7.3.y 0/5] KVM/arm64 stable fixes Date: Sat, 5 Dec 2026 10:41:12 +0000 Message-ID: <20261205104117.1431915-1-maz@kernel.org> X-Mailer: git-send-email 2.47.3 X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, seiden@linux.ibm.com, joey.gouly@arm.com, suzuki.poulose@arm.com, oupton@kernel.org, yuzenghui@huawei.com, fuad.tabba@linux.dev, pbonzini@redhat.com, stable@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 - Make the ITS MOVALL command a full synchronisation point for the whole VM, stopping it so that the command can execute withough having to fight for locks. - Bound PINTID during ITE table restore, avoiding the possibility that the guest plants an out-of-range LPI INTID in its own in-memory ITS tables prior to restore. - Do not blindly trust the vINTID field coming from KVM, and reject anything that is out of the boundaries that the hardware ITS is configured to support. - Add signal_pending checks to the scan_its_table() loop; device table entries with num_eventid_bits = 16 (or 65536 EventIDs per device) are valid but takes a long time to restore. - Remove quadratic complexity from the algorithm used to prune IRQs sitting in the AP list has a quadratic complexity, and simplify the locking while at that. Marc Zyngier (3): KVM: arm64: vgic-its: Stop the VM when handling MOVALL irqchip/gic-v4: Contain VMAPTI vINTID to the expected boundaries KVM: arm64: vgic: Linearise AP list pruning process Raghavendra Rao Ananta (2): KVM: arm64: vgic-its: Bound PINTID during ITE table restore KVM: arm64: vgic-its: Add signal checks in scan_its_table() arch/arm64/kvm/vgic/vgic-its.c | 17 ++- arch/arm64/kvm/vgic/vgic.c | 175 +++++++++++++++---------------- drivers/irqchip/irq-gic-v3-its.c | 3 +- 3 files changed, 105 insertions(+), 90 deletions(-) -- 2.47.3