x86/mm: Remove pv_ops.mmu.tlb_remove_table call
authorRik van Riel <riel@surriel.com>
Thu, 13 Feb 2025 16:13:53 +0000 (11:13 -0500)
committerIngo Molnar <mingo@kernel.org>
Fri, 21 Feb 2025 15:20:12 +0000 (16:20 +0100)
commitf2c5c21058270167ce23172022da083b62e5ad4c
treed62c3c32eb5995c01c360d952f57d21242c9cb8b
parenta37259732a7dc33047fa1e4f9a338088f452e017
x86/mm: Remove pv_ops.mmu.tlb_remove_table call

Every pv_ops.mmu.tlb_remove_table call ends up calling tlb_remove_table.

Get rid of the indirection by simply calling tlb_remove_table directly,
and not going through the paravirt function pointers.

Suggested-by: Qi Zheng <zhengqi.arch@bytedance.com>
Signed-off-by: Rik van Riel <riel@surriel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Manali Shukla <Manali.Shukla@amd.com>
Tested-by: Brendan Jackman <jackmanb@google.com>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/20250213161423.449435-3-riel@surriel.com
arch/x86/hyperv/mmu.c
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/paravirt_types.h
arch/x86/kernel/kvm.c
arch/x86/kernel/paravirt.c
arch/x86/xen/mmu_pv.c