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
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
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
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
>>
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
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