x86: Introduce helpers/checks for endbr64 instructions
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 26 Nov 2021 15:34:08 +0000 (15:34 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Feb 2022 15:33:43 +0000 (15:33 +0000)
commit4046ba97446e3974a4411db227263a9f11e0aeb4
tree94b37f170f02254dd20bd3e225c3512d0a648550
parent809beac3e7fdfd20000386453c64a1e2a3d93075
x86: Introduce helpers/checks for endbr64 instructions

... to prevent the optimiser creating unsafe code.  See the code comment for
full details.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/include/asm/endbr.h [new file with mode: 0644]