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

From: Peter Zijlstra
Date: Fri Jan 15 2021 - 04:55:52 EST


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