Skip to content

Commit

Permalink
xen/arm: Import ID features sanitize from linux
Browse files Browse the repository at this point in the history
Import structures declared in Linux file arch/arm64/kernel/cpufeature.c
and the required types from arch/arm64/include/asm/cpufeature.h.

Current code has been imported from Linux 5.13-rc5 (Commit ID
cd1245d75ce93b8fd206f4b34eb58bcfe156d5e9) and copied into cpufeature.c
in arm64 code and cpufeature.h in arm64 specific headers.

Those structure will be used to sanitize the cpu features available to
the ones availble on all cores of a system even if we are on an
heterogeneous platform (from example a big/LITTLE).

For each feature field of all ID registers, those structures define what
is the safest value and if we can allow to have different values in
different cores.

This patch is introducing Linux code without any changes to it.

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
  • Loading branch information
bertrand-marquis authored and Stefano Stabellini committed Sep 16, 2021
1 parent b1cbe8c commit 3918da3
Show file tree
Hide file tree
Showing 2 changed files with 618 additions and 0 deletions.

0 comments on commit 3918da3

Please sign in to comment.