xen/arm: Add ARCH_WORKAROUND_2 probing
authorJulien Grall <julien.grall@arm.com>
Tue, 12 Jun 2018 11:36:34 +0000 (12:36 +0100)
committerJulien Grall <julien.grall@arm.com>
Fri, 22 Jun 2018 01:59:08 +0000 (02:59 +0100)
commit280997891e8ca583f1b7a43297e197c0e4be8f0c
tree817c2e52e44cf819e6e388f055720614ea2e4dd9
parent233095b039a90f9e6c3e1d7a04001c30b8d1754b
xen/arm: Add ARCH_WORKAROUND_2 probing

As for Spectre variant-2, we rely on SMCCC 1.1 to provide the discovery
mechanism for detecting the SSBD mitigation.

A new capability is also allocated for that purpose, and a config
option.

This is part of XSA-263.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/Kconfig
xen/arch/arm/cpuerrata.c
xen/include/asm-arm/cpuerrata.h
xen/include/asm-arm/cpufeature.h
xen/include/asm-arm/smccc.h