]> xenbits.xensource.com Git - people/dariof/xen.git/commit
xen/arm: Detect silicon revision and set cap bits accordingly
authorJulien Grall <julien.grall@arm.com>
Wed, 27 Jul 2016 16:37:07 +0000 (17:37 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 3 Aug 2016 19:47:07 +0000 (15:47 -0400)
commit8b01f6364f50f3b416105cc5f1ee2ca4f13d43eb
tree340c3904cbc7382f9b0566badd259f92333e26b0
parent64eb606000f1258267f27e6819c59848e2226773
xen/arm: Detect silicon revision and set cap bits accordingly

After each CPU has been started, we iterate through a list of CPU
errata to detect CPUs which need from hypervisor code patches.

For each bug there is a function which checks if that a particular CPU is
affected. This needs to be done on every CPU to cover heterogenous
systems properly.

If a certain erratum has been detected, the capability bit will be set.
In the case the erratum requires code patching, this will be triggered
by the call to apply_alternatives.

The code is based on the file arch/arm64/kernel/cpu_errata.c in Linux
v4.6-rc3.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/Makefile
xen/arch/arm/cpuerrata.c [new file with mode: 0644]
xen/arch/arm/setup.c
xen/arch/arm/smpboot.c
xen/include/asm-arm/cpuerrata.h [new file with mode: 0644]
xen/include/asm-arm/cpufeature.h