KVM: arm64: Set CSV2 for guests on hardware unaffected by Spectre-v2
authorMarc Zyngier <maz@kernel.org>
Tue, 15 Sep 2020 23:07:05 +0000 (00:07 +0100)
committerWill Deacon <will@kernel.org>
Tue, 29 Sep 2020 15:08:16 +0000 (16:08 +0100)
commite1026237f90677fd5a454f63057a62f984c2188d
tree17b3f19aadc96051d069522cfd9c9a61d0d7757b
parentd4647f0a2ad711101067cba69c34716758aa1e48
KVM: arm64: Set CSV2 for guests on hardware unaffected by Spectre-v2

If the system is not affected by Spectre-v2, then advertise to the KVM
guest that it is not affected, without the need for a safelist in the
guest.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kvm/sys_regs.c