linux/arch/arm64/kvm/vgic
Keisuke Nishimura be7e611274 KVM: arm64: vgic-its: Add error handling in vgic_its_cache_translation
The return value of xa_store() needs to be checked. This fix adds an
error handling path that resolves the kref inconsistency on failure. As
suggested by Oliver Upton, this function does not return the error code
intentionally because the translation cache is best effort.

Fixes: 8201d1028c ("KVM: arm64: vgic-its: Maintain a translation cache per ITS")
Signed-off-by: Keisuke Nishimura <keisuke.nishimura@inria.fr>
Suggested-by: Oliver Upton <oliver.upton@linux.dev>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241130144952.23729-1-keisuke.nishimura@inria.fr
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
2024-12-03 16:22:10 -08:00
..
trace.h
vgic-debug.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic-init.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08: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: vgic-its: Add error handling in vgic_its_cache_translation 2024-12-03 16:22:10 -08:00
vgic-kvm-device.c KVM: arm64: vgic: Don't check for vgic_ready() when setting NR_IRQS 2024-10-17 09:20:48 +01:00
vgic-mmio-v2.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic-mmio-v3.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic-mmio.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08: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: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic-v3.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic-v4.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic.c KVM: arm64: vgic: Kill VGIC_MAX_PRIVATE definition 2024-11-20 17:21:08 -08:00
vgic.h KVM: arm64: vgic-its: Add stronger type-checking to the ITS entry sizes 2024-11-20 17:21:08 -08:00