Re: [PATCH v2 3/3] KVM: x86: use static calls to reduce kvm_x86_ops overhead

Peter Zijlstra
2021-01-15T09:56:06Z

On Fri, Jan 15, 2021 at 10:53:51AM +0100, Peter Zijlstra wrote:
> @@ -190,6 +191,7 @@ extern int static_call_text_reserved(voi
> #elif defined(CONFIG_HAVE_STATIC_CALL)
>
> static inline long __static_call_return0(void) { return 0; }
> +static inline long __static_call_return0(void) { return 1; }
>
> static inline int static_call_init(void) { return 0; }
>
> @@ -239,6 +241,7 @@ static inline int static_call_text_reser
> #else /* Generic implementation */
>
> static inline long __static_call_return0(void) { return 0; }
> +static inline long __static_call_return0(void) { return 1; }

Too much copy-fail... Lemme go make more tea :-)