On 14/02/2022 12:51, Andrew Cooper wrote: > ... to prevent the optimiser creating unsafe code. See the code comment for > full details. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
From review in the follow-up series, I've merged this delta: diff --git a/xen/arch/x86/include/asm/endbr.h b/xen/arch/x86/include/asm/endbr.h index 6b6f46afaf29..6090afeb0bd8 100644 --- a/xen/arch/x86/include/asm/endbr.h +++ b/xen/arch/x86/include/asm/endbr.h @@ -19,6 +19,8 @@ #include <xen/types.h> +#define ENDBR64_LEN 4 + /* * In some cases we need to inspect/insert endbr64 instructions. * in, to replace some raw 4's. ~Andrew