]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: vgic-v3: Restrict SEIS workaround to known broken systems
authorMarc Zyngier <maz@kernel.org>
Fri, 21 Jan 2022 21:07:47 +0000 (21:07 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 22 Jan 2022 11:38:16 +0000 (11:38 +0000)
commite35e6f5b1ed601ea9180fcef3c376e75970cddf7
tree068393cd3785428f3c398b829baaa4940f0a27d2
parent26c89deac5f1b668622fb918117be5614b22a973
KVM: arm64: vgic-v3: Restrict SEIS workaround to known broken systems

Contrary to what 28263940cdba ("KVM: arm64: vgic-v3: Work around GICv3
locally generated SErrors") was asserting, there is at least one other
system out there (Cavium ThunderX2) implementing SEIS, and not in
an obviously broken way.

So instead of imposing the M1 workaround on an innocent bystander,
let's limit it to the two known broken Apple implementations.

Fixes: 28263940cdba ("KVM: arm64: vgic-v3: Work around GICv3 locally generated SErrors")
Reported-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220122103912.795026-1-maz@kernel.org
arch/arm64/kvm/hyp/vgic-v3-sr.c
arch/arm64/kvm/vgic/vgic-v3.c