Re: [PATCH][RFC] x86,lib: Add wbinvd_on_many_cpus helpers

From: Ingo Molnar
Date: Tue Apr 09 2024 - 03:45:55 EST



* Li RongQing <lirongqing@xxxxxxxxx> wrote:

> wbinvd_on_many_cpus will call smp_call_function_many(), which should
> be more efficient that iterating cpus since it would run wbinvd()
> concurrently locally and remotely
>
> it can be used by the below patch
> https://patchwork.kernel.org/project/kvm/patch/1860502863.219296.1710395908135.JavaMail.zimbra@xxxxxxxxxxx/
>
> Cc: Zheyun Shen <szy0127@xxxxxxxxxxx>
> Cc: Tom Lendacky <thomas.lendacky@xxxxxxx>
> Signed-off-by: Li RongQing <lirongqing@xxxxxxxxx>
> ---
> arch/x86/include/asm/smp.h | 7 +++++++
> arch/x86/lib/cache-smp.c | 7 +++++++
> 2 files changed, 14 insertions(+)

The two patches should be submitted together within the same series.

Thanks,

Ingo