arm64: KVM: Propagate full Spectre v2 workaround state to KVM guests
Recent commits added the explicit notion of "workaround not required" to the state of the Spectre v2 (aka. BP_HARDENING) workaround, where we just had "needed" and "unknown" before. Export this knowledge to the rest of the kernel and enhance the existing kvm_arm_harden_branch_predictor() to report this new state as well. Export this new state to guests when they use KVM's firmware interface emulation. Signed-off-by:Andre Przywara <andre.przywara@arm.com> Reviewed-by:
Steven Price <steven.price@arm.com> Signed-off-by:
Marc Zyngier <marc.zyngier@arm.com>
Showing
- arch/arm/include/asm/kvm_host.h 9 additions, 3 deletionsarch/arm/include/asm/kvm_host.h
- arch/arm64/include/asm/cpufeature.h 6 additions, 0 deletionsarch/arm64/include/asm/cpufeature.h
- arch/arm64/include/asm/kvm_host.h 14 additions, 2 deletionsarch/arm64/include/asm/kvm_host.h
- arch/arm64/kernel/cpu_errata.c 18 additions, 5 deletionsarch/arm64/kernel/cpu_errata.c
- virt/kvm/arm/psci.c 9 additions, 1 deletionvirt/kvm/arm/psci.c
Loading
Please register or sign in to comment