linux/arch/arm64/kvm/vgic
Zenghui Yu 2240a50e62 KVM: arm64: vgic-debug: Don't put unmarked LPIs
If there were LPIs being mapped behind our back (i.e., between .start() and
.stop()), we would put them at iter_unmark_lpis() without checking if they
were actually *marked*, which is obviously not good.

Switch to use the xa_for_each_marked() iterator to fix it.

Cc: stable@vger.kernel.org
Fixes: 85d3ccc8b7 ("KVM: arm64: vgic-debug: Use an xarray mark for debug iterator")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240817101541.1664-1-yuzenghui@huawei.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
2024-08-19 17:04:36 +00:00
..
trace.h
vgic-debug.c KVM: arm64: vgic-debug: Don't put unmarked LPIs 2024-08-19 17:04:36 +00:00
vgic-init.c KVM: arm64: vgic: Hold config_lock while tearing down a CPU interface 2024-08-08 16:58:22 +00:00
vgic-irqfd.c KVM: arm64: fix kdoc warnings in W=1 builds 2024-08-02 18:58:03 +00:00
vgic-its.c KVM: arm64: fix kdoc warnings in W=1 builds 2024-08-02 18:58:03 +00:00
vgic-kvm-device.c KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr() 2024-04-24 19:09:35 +00:00
vgic-mmio-v2.c KVM: arm64: Don't read a HW interrupt pending state in user context 2022-06-07 16:28:19 +01:00
vgic-mmio-v3.c KVM: arm64: Disassociate vcpus from redistributor region on teardown 2024-06-06 08:54:15 +01:00
vgic-mmio.c KVM: arm64: vgic: Use common accessor for writes to ICPENDR 2023-12-22 09:34:17 +00:00
vgic-mmio.h KVM: arm64: vgic-v3: Use u32 to manage the line level from userspace 2022-07-17 11:55:33 +01:00
vgic-v2.c KVM: arm64: Simplify vgic-v3 hypercalls 2024-05-01 16:48:14 +01:00
vgic-v3.c KVM: arm64: fix kdoc warnings in W=1 builds 2024-08-02 18:58:03 +00:00
vgic-v4.c KVM: arm64: GICv4: Do not perform a map to a mapped vLPI 2023-11-20 19:13:32 +00:00
vgic.c KVM: arm64: vgic: fix unexpected unlock sparse warnings 2024-08-02 18:58:03 +00:00
vgic.h KVM: arm64: vgic: fix unexpected unlock sparse warnings 2024-08-02 18:58:03 +00:00