kernel_samsung_a53x/arch/arm64/kvm/vgic
Kunkun Jiang 4f425b599a KVM: arm64: vgic-its: Clear ITE when DISCARD frees an ITE
commit 7602ffd1d5e8927fadd5187cb4aed2fdc9c47143 upstream.

When DISCARD frees an ITE, it does not invalidate the
corresponding ITE. In the scenario of continuous saves and
restores, there may be a situation where an ITE is not saved
but is restored. This is unreasonable and may cause restore
to fail. This patch clears the corresponding ITE when DISCARD
frees an ITE.

Cc: stable@vger.kernel.org
Fixes: eff484e0298d ("KVM: arm64: vgic-its: ITT save and restore")
Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com>
[Jing: Update with entry write helper]
Signed-off-by: Jing Zhang <jingzhangos@google.com>
Link: https://lore.kernel.org/r/20241107214137.428439-6-jingzhangos@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-17 13:24:34 +01:00
..
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic-debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic-init.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic-irqfd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic-its.c KVM: arm64: vgic-its: Clear ITE when DISCARD frees an ITE 2024-12-17 13:24:34 +01:00
vgic-kvm-device.c KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr() 2024-11-19 11:32:43 +01:00
vgic-mmio-v2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic-mmio-v3.c KVM: arm64: vgic-v4: Restore pending state on host userspace write 2024-11-18 12:12:48 +01:00
vgic-mmio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic-mmio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic-v2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic-v3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic-v4.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic.h KVM: arm64: vgic-its: Add a data length check in vgic_its_save_* 2024-12-17 13:24:34 +01:00