um: Add support for host CPU flags and alignment
authorAnton Ivanov <anton.ivanov@cambridgegreys.com>
Fri, 12 Mar 2021 15:16:07 +0000 (15:16 +0000)
committerRichard Weinberger <richard@nod.at>
Thu, 17 Jun 2021 20:01:26 +0000 (22:01 +0200)
commitd8fb32f4790f2a286e58db8548016378ac35fc6f
tree050c2708dc80d0d61fb6d247a487d02e3c2b6f4f
parent386093c68ba3e8bcfe7f46deba901e0e80713c29
um: Add support for host CPU flags and alignment

1. Reflect host cpu flags into the UML instance so they can
be used to select the correct implementations for xor, crypto, etc.

2. Reflect host cache alignment into UML instance. This is
important when running 32 bit on a 64 bit host as 32 bit by
default aligns to 32 while the actual alignment should be 64.
Ditto for some Xeons which align at 128.

Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/Kconfig
arch/um/include/asm/cpufeature.h [new file with mode: 0644]
arch/um/include/asm/processor-generic.h
arch/um/include/shared/os.h
arch/um/kernel/Makefile
arch/um/kernel/um_arch.c
arch/um/os-Linux/start_up.c