Skip to content
Commit c9005f1b authored by James Morse's avatar James Morse
Browse files

KVM: arm64: Add templates for BHB mitigation sequences



KVM writes the Spectre-v2 mitigation template at the beginning of each
vector when a CPU requires a specific sequence to run.

Because the template is copied, it can not be modified by the alternatives
at runtime.

Add templates for calling ARCH_WORKAROUND_3 and one for each value of K
in the brancy-loop. Add dummy functions to identify these mitigations,
and a copy of install_bp_hardening_cb() that is able to install them.

Signed-off-by: James Morse's avatarJames Morse <james.morse@arm.com>
parent bb2167aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment