summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2024-08-19 14:15:53 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-05-18 08:26:08 +0200
commitaa32707744d6240b80b7abf5a46e6e0dffe27b7d (patch)
treeda92bce6b07c779653d822af5e72e63dcaa7aad7 /include/net/aligned_data.h
parent1e19632057847914a36edc9f02a4da13bcb8b92a (diff)
arm64: proton-pack: Expose whether the platform is mitigated by firmware
commit e7956c92f396a44eeeb6eaf7a5b5e1ad24db6748 upstream. is_spectre_bhb_fw_affected() allows the caller to determine if the CPU is known to need a firmware mitigation. CPUs are either on the list of CPUs we know about, or firmware has been queried and reported that the platform is affected - and mitigated by firmware. This helper is not useful to determine if the platform is mitigated by firmware. A CPU could be on the know list, but the firmware may not be implemented. Its affected but not mitigated. spectre_bhb_enable_mitigation() handles this distinction by checking the firmware state before enabling the mitigation. Add a helper to expose this state. This will be used by the BPF JIT to determine if calling firmware for a mitigation is necessary and supported. Signed-off-by: James Morse <james.morse@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions