]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit13a5f1c265db9a9d4a87472c799a24890bd93690
tree17b3f19aadc96051d069522cfd9c9a61d0d7757b
parente75cb8e497be0a2f2043cefbb0f8ffbf677e2e86
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