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)
commitd11a327ed95dbec756b99cbfef2a7fd85c9eeb09
tree068393cd3785428f3c398b829baaa4940f0a27d2
parent094d00f8ca58c5d29b25e23b4daaed1ff1f13b41
KVM: arm64: vgic-v3: Restrict SEIS workaround to known broken systems

Contrary to what df652bcf1136 ("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: df652bcf1136 ("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