On Tue, May 12, 2020 at 3:11 PM Andrew Cooper <andrew.coop...@citrix.com> wrote: > > See comment for details. Works around a GCC-9 bug which breaks the build on > Ubuntu. > > Reported-by: Jason Andryuk <jandr...@gmail.com> > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
Tested-by: Jason Andryuk <jandr...@gmail.com> Reviewed-by: Jason Andryuk <jandr...@gmail.com> > diff --git a/xen/arch/x86/arch.mk b/xen/arch/x86/arch.mk > index 2a51553edb..93e30e4bea 100644 > --- a/xen/arch/x86/arch.mk > +++ b/xen/arch/x86/arch.mk > @@ -67,6 +67,15 @@ CFLAGS-$(CONFIG_INDIRECT_THUNK) += > -mindirect-branch=thunk-extern > CFLAGS-$(CONFIG_INDIRECT_THUNK) += -mindirect-branch-register > CFLAGS-$(CONFIG_INDIRECT_THUNK) += -fno-jump-tables > > +# Xen doesn't support CET-IBT yet. At a minimum, logic is required to > +# enable it for supervisor use, but the Livepatch functionality needs > +# to learn not to overwrite ENDBR64 instructions. Is the problem that existing functions start with ENDBR64, but the livepatch overwrites with a "real" instruction? Regards, Jason