WSL2-Linux-Kernel/arch/arm64/kvm/hyp
James Morse 8979720ac6 arm64: Use the clearbhb instruction in mitigations
commit 228a26b912 upstream.

Future CPUs may implement a clearbhb instruction that is sufficient
to mitigate SpectreBHB. CPUs that implement this instruction, but
not CSV2.3 must be affected by Spectre-BHB.

Add support to use this instruction as the BHB mitigation on CPUs
that support it. The instruction is in the hint space, so it will
be treated by a NOP as older CPUs.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-11 12:22:35 +01:00
..
include KVM: arm64: Avoid consuming a stale esr value when SError occur 2022-02-08 18:34:06 +01:00
nvhe KVM: arm64: Allow indirect vectors to be used without SPECTRE_V3A 2022-03-11 12:22:33 +01:00
vhe arm64: Add percpu vectors for EL1 2022-03-11 12:22:34 +01:00
Makefile KVM: arm64: Prepare the creation of s1 mappings at EL2 2021-03-19 12:01:21 +00:00
aarch32.c KVM: arm64: Move kvm_vcpu_trap_il_is32bit into kvm_skip_instr32() 2020-11-10 08:34:24 +00:00
entry.S KVM: arm64: Save/restore MTE registers 2021-06-22 14:08:05 +01:00
exception.c KVM: arm64: Use shadow SPSR_EL1 when injecting exceptions on !VHE 2022-02-01 17:26:59 +01:00
fpsimd.S KVM: arm64: Rework SVE host-save/guest-restore 2021-03-18 13:57:37 +00:00
hyp-entry.S arm64: Use the clearbhb instruction in mitigations 2022-03-11 12:22:35 +01:00
pgtable.c KVM: arm64: pkvm: Use the mm_ops indirection for cache maintenance 2022-02-01 17:27:09 +01:00
reserved_mem.c memblock: make memblock_find_in_range method private 2021-09-03 09:58:17 -07:00
vgic-v2-cpuif-proxy.c KVM: arm64: Remove hyp_symbol_addr 2021-01-23 14:01:00 +00:00
vgic-v3-sr.c KVM: arm64: Fix CPU interface MMIO compatibility detection 2021-03-24 17:26:38 +00:00