summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorFuad Tabba <fuad.tabba@linux.dev>2026-10-28 17:33:19 +0000
committerMarc Zyngier <maz@kernel.org>2026-11-03 10:58:51 +0000
commit147ce65112bc7255d5e2d3b12aaa23dc9ce44371 (patch)
tree1c8c24450e27676625df7bcc6e4e79674adb8d88 /tools/perf/scripts/python/bin
parente1024ed9c3823fbc4b1e65f351088f0bf999b887 (diff)
KVM: arm64: vgic-its: Remove the pending state of a cleared LPI
CLEAR removes the pending state of an LPI (IHI 0069H.b 5.3.3). Since commit e99ff76f4a02b ("KVM: arm64: vgic-its: Remove the pending state of a discarded LPI"), DISCARD does that under the irq lock, after pausing the vCPUs whose list registers can hold the LPI. CLEAR does neither. An LPI pending in a running vCPU's list register is folded back on exit, so the guest takes it after the CLEAR. pending_latch also shares a word with on_lr, so a racing CLEAR can restore on_lr after the exit path has cleared it under the lock, and trip the WARN_ON() in vgic_v3_compute_lr() when the LPI is next queued. Move DISCARD's pause and clear into a helper and use it for CLEAR too, after checking, as DISCARD does, that the event's collection is mapped. CLEAR on an unmapped collection is a command error. Without the check, the helper could be handed an LPI that has no target vCPU to pause. Fixes: df9f58fbea9bc ("KVM: arm64: vgic-its: Implement ITS command queue command handlers") Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev> Link: https://patch.msgid.link/20261028173319.1807811-3-fuad.tabba@linux.dev Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions