diff options
author | Anton Ivanov <anton.ivanov@cambridgegreys.com> | 2021-03-12 15:16:07 +0000 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-06-17 22:01:26 +0200 |
commit | d8fb32f4790f2a286e58db8548016378ac35fc6f (patch) | |
tree | 050c2708dc80d0d61fb6d247a487d02e3c2b6f4f /arch/um/include/shared | |
parent | 386093c68ba3e8bcfe7f46deba901e0e80713c29 (diff) | |
download | linux-d8fb32f4790f2a286e58db8548016378ac35fc6f.tar.gz linux-d8fb32f4790f2a286e58db8548016378ac35fc6f.tar.bz2 linux-d8fb32f4790f2a286e58db8548016378ac35fc6f.zip |
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>
Diffstat (limited to 'arch/um/include/shared')
-rw-r--r-- | arch/um/include/shared/os.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/um/include/shared/os.h b/arch/um/include/shared/os.h index 453b13369533..8e9e05d3b419 100644 --- a/arch/um/include/shared/os.h +++ b/arch/um/include/shared/os.h @@ -187,6 +187,9 @@ int os_poll(unsigned int n, const int *fds); extern void os_early_checks(void); extern void os_check_bugs(void); extern void check_host_supports_tls(int *supports_tls, int *tls_min); +extern void get_host_cpu_features( + void (*flags_helper_func)(char *line), + void (*cache_helper_func)(char *line)); /* mem.c */ extern int create_mem_file(unsigned long long len); |