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

2021-07-14 Thread Jan Beulich
On 12.07.2021 22:32, Daniel P. Smith wrote: > --- a/xen/arch/x86/Kconfig > +++ b/xen/arch/x86/Kconfig > @@ -9,6 +9,7 @@ config X86 > select ARCH_SUPPORTS_INT128 > select CORE_PARKING > select HAS_ALTERNATIVE > + select ALTERNATIVE_CALL > select HAS_COMPAT > select

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

2021-07-13 Thread Jan Beulich
On 13.07.2021 10:36, Andrew Cooper wrote: > On 13/07/2021 07:28, Jan Beulich wrote: >> On 13.07.2021 01:48, Andrew Cooper wrote: >>> On 12/07/2021 21:32, Daniel P. Smith wrote: diff --git a/xen/include/xen/alternative-call.h b/xen/include/xen/alternative-call.h new file mode 100644

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

2021-07-13 Thread Andrew Cooper
On 13/07/2021 07:28, Jan Beulich wrote: > On 13.07.2021 01:48, Andrew Cooper wrote: >> On 12/07/2021 21:32, Daniel P. Smith wrote: >>> diff --git a/xen/include/xen/alternative-call.h >>> b/xen/include/xen/alternative-call.h >>> new file mode 100644 >>> index 00..11d1c26068 >>> --- /dev/nul

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

2021-07-12 Thread Jan Beulich
On 13.07.2021 01:48, Andrew Cooper wrote: > On 12/07/2021 21:32, Daniel P. Smith wrote: >> diff --git a/xen/include/xen/alternative-call.h >> b/xen/include/xen/alternative-call.h >> new file mode 100644 >> index 00..11d1c26068 >> --- /dev/null >> +++ b/xen/include/xen/alternative-call.h >>

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

2021-07-12 Thread Andrew Cooper
On 12/07/2021 21:32, Daniel P. Smith wrote: > diff --git a/xen/include/xen/alternative-call.h > b/xen/include/xen/alternative-call.h > new file mode 100644 > index 00..11d1c26068 > --- /dev/null > +++ b/xen/include/xen/alternative-call.h > @@ -0,0 +1,65 @@ > +/* SPDX-License-Identifier: GP

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

2021-07-12 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