Re: [PATCH v4 01/11] xen: Implement xen/alternative-call.h for use in common code

2021-09-07 Thread Daniel P. Smith
On 9/7/21 2:00 AM, Jan Beulich wrote: On 06.09.2021 18:22, Andrew Cooper wrote: On 06/09/2021 16:52, Jan Beulich wrote: On 03.09.2021 21:06, Daniel P. Smith wrote: --- /dev/null +++ b/xen/include/xen/alternative-call.h @@ -0,0 +1,63 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef XEN_AL

Re: [PATCH v4 01/11] xen: Implement xen/alternative-call.h for use in common code

2021-09-06 Thread Jan Beulich
On 06.09.2021 18:22, Andrew Cooper wrote: > On 06/09/2021 16:52, Jan Beulich wrote: >> On 03.09.2021 21:06, Daniel P. Smith wrote: >>> --- /dev/null >>> +++ b/xen/include/xen/alternative-call.h >>> @@ -0,0 +1,63 @@ >>> +/* SPDX-License-Identifier: GPL-2.0 */ >>> +#ifndef XEN_ALTERNATIVE_CALL >>> +#

Re: [PATCH v4 01/11] xen: Implement xen/alternative-call.h for use in common code

2021-09-06 Thread Andrew Cooper
On 06/09/2021 16:52, Jan Beulich wrote: > On 03.09.2021 21:06, Daniel P. Smith wrote: >> --- /dev/null >> +++ b/xen/include/xen/alternative-call.h >> @@ -0,0 +1,63 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ >> +#ifndef XEN_ALTERNATIVE_CALL >> +#define XEN_ALTERNATIVE_CALL >> + >> +/* >> + * Some

Re: [PATCH v4 01/11] xen: Implement xen/alternative-call.h for use in common code

2021-09-06 Thread Jan Beulich
On 03.09.2021 21:06, Daniel P. Smith wrote: > --- /dev/null > +++ b/xen/include/xen/alternative-call.h > @@ -0,0 +1,63 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef XEN_ALTERNATIVE_CALL > +#define XEN_ALTERNATIVE_CALL > + > +/* > + * Some subsystems in Xen may have multiple implementions,

[PATCH v4 01/11] xen: Implement xen/alternative-call.h for use in common code

2021-09-03 Thread Daniel P. Smith
From: Andrew Cooper The alternative call infrastructure is x86-only for now, but the common iommu code has a variant and more common code wants to use the infrastructure. Introduce CONFIG_ALTERNATIVE_CALL and a conditional implemetnation so common code can use the optimisation when available, wi