kernel_samsung_a53x/arch/arm64/kvm
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
..
hyp arm64: lse: Always use LSE atomic instructions 2024-11-17 17:45:05 +01:00
vgic KVM: arm64: vgic-its: Clear ITE when DISCARD frees an ITE 2024-12-17 13:24:34 +01:00
arch_timer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
arm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fpsimd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
guest.c KVM: arm64: Allow AArch32 PSTATE.M to be restored as System mode 2024-11-19 12:27:18 +01:00
handle_exit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hypercalls.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inject_fault.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmu-emul.c KVM: arm64: Ignore PMCNTENSET_EL0 while checking for overflow status 2024-12-17 13:24:18 +01:00
pmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvtime.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sys_regs.c KVM: arm64: Make ICC_*SGI*_EL1 undef in the absence of a vGICv3 2024-11-23 23:20:50 +01:00
sys_regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace_arm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace_handle_exit.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trng.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
va_layout.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgic-sys-reg-v3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00