Re: [Xen-devel] [PATCH v5 18/28] xsplice: Add support for alternatives

2016-04-06 Thread Konrad Rzeszutek Wilk
On Fri, Apr 01, 2016 at 10:20:40AM -0600, Jan Beulich wrote: > >>> On 24.03.16 at 21:00, wrote: > > --- a/xen/arch/x86/alternative.c > > +++ b/xen/arch/x86/alternative.c > > @@ -28,7 +28,7 @@ > > extern struct alt_instr __alt_instructions[], __alt_instructions_end[]; > > > > #ifdef K8_NOP1 > >

Re: [Xen-devel] [PATCH v5 18/28] xsplice: Add support for alternatives

2016-04-01 Thread Jan Beulich
>>> On 24.03.16 at 21:00, wrote: > --- a/xen/arch/x86/alternative.c > +++ b/xen/arch/x86/alternative.c > @@ -28,7 +28,7 @@ > extern struct alt_instr __alt_instructions[], __alt_instructions_end[]; > > #ifdef K8_NOP1 > -static const unsigned char k8nops[] __initconst = { > +static const unsigne

[Xen-devel] [PATCH v5 18/28] xsplice: Add support for alternatives

2016-03-24 Thread Konrad Rzeszutek Wilk
From: Ross Lagerwall Add support for applying alternative sections within xsplice payload. At payload load time, apply an alternative sections that are found. Also we add an test-case exercising a rather useless alternative (patching a NOP with a NOP) - but it does exercise the code-path. Signe