xen: Port the array_index_nospec() infrastructure from Linux
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Jul 2018 11:06:10 +0000 (12:06 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Jul 2018 15:49:57 +0000 (16:49 +0100)
commit2ddfae51d8b1d7b8cd33a4f6ad4d16d27cb869ae
treece99914141191564722edaef8e5d4df5183cdc74
parent73ba1d436b3d601fcc1186261e9f813de5cfd569
xen: Port the array_index_nospec() infrastructure from Linux

This is as the infrastructure appeared in Linux 4.17, adapted slightly for
Xen.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-arm/arm32/system.h
xen/include/asm-arm/arm64/system.h
xen/include/asm-x86/system.h
xen/include/xen/compiler.h
xen/include/xen/nospec.h [new file with mode: 0644]