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=1796467310; b=bi3lVf01F2JQ8PlFP0YrITGHVlkMWA4uhJ680iTiM9UQzBYhBD4BVzuUieFxFk31l80l nJeX+DXW0J7XbFqvc1go3uXWOFgfHRCXokZ0fiEGC+w3JS75K+cFyWBXPFu6X1YhAr+Oz Ek37ll7YLSoDHwv2OLg7UgukqhkOP71UBqNvJdFVE/0QrAgOJNmrCQ7R2FtRcB8Cq+jk2 0Uv3AER0usOv4omRZopmmp73BGx5T45+TV6AOyGpZtVRbgAGRX0XWDw0Er8oc4Ce106wc MKKQzIxjUBxJ7Oh2mPmtp0abbEWOUFWqUXudhDvEik+mrN3lb4i24kiqdK9milJcCEw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796467310; 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=pZGgMVnIJ+Pgh4zV9SZpRnoecgGOzFOQCCbTB+aHhco=; b=py2iZwKe3oD+cRlfb45R0aKIZQ5syRGCkYhblrkrO268boqlOadAUdA6bMCTMka8xmh6 HP6mcP/mvEJ+t2roBgDuJRRA7sgOT1aQbV2VAP0/BgUAIjKC2iBqLVOMhh0SBojlb9aOG /Kn610VbI1InY6d3frCJ7VV7hMWjnOVwMKUxnjQkvBocGbfm9i614xVDplkN2r7cl/srU OtMs56W/zpbbi0Hs6t8KryX5dI/SH3+tV1NBUVFx61651ZdDwwjtIJvFUsYQPA/naXiWL 5+36D9r2iOgI+nWKIG0xTBlPbBV2l+PwA2/Sd3nz1tfhwqfchuiiAcL7oNV+JrCnbFw== 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="Yb5Q/6li"; 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 81512606A332; Sat, 5 Dec 2026 10:41:50 +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=Yb5Q/6li Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E1CF1F00936; Sat, 5 Dec 2026 10:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796467310; bh=pZGgMVnIJ+Pgh4zV9SZpRnoecgGOzFOQCCbTB+aHhco=; h=From:To:Cc:Subject:Date; b=Yb5Q/6liH+vuKucS2e8J1iI22MmOxFoHwhlEP6qwIdiErKMApV/VtnCsAUFkIKmTC QsfVeNX1EMksyVsF5V3CQ7KiIjZ3DLmkvXX9Tz7VaqIQi663ko/neOyRLb/fvnVehs t5PieHaZdkUVPeUJc/5Bn5iLwI+IXWuohccXn898dZgemiwCdJPHaAn4Y9OMYGI4Yf R4gNrLpCahd445Vln8RIn12m8+pMmbLejyDeMpgS73W7LM+8RFZWfN/j6H6BknU8Ak RhYyCC7c9/+rXceocf5HQFQHKXAKW+kIKI3oNqVHvpmwM7yEBpNCoxGVD41WGulYol 13QZy4dXeO2TA== 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 1xZnDA-00000007UZr-21dX; Sat, 05 Dec 2026 10:41:48 +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 6.1.y 0/5] KVM/arm64 stable fixes Date: Sat, 5 Dec 2026 10:41:39 +0000 Message-ID: <20261205104145.1432112-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 | 19 +++- arch/arm64/kvm/vgic/vgic.c | 170 ++++++++++++++++--------------- drivers/irqchip/irq-gic-v3-its.c | 3 +- 3 files changed, 107 insertions(+), 85 deletions(-) -- 2.47.3