Re: [PATCH v9 06/22] x86/cea: Export __this_cpu_ist_top_va() to KVM

From: Borislav Petkov

Date: Fri Jan 30 2026 - 08:49:11 EST


On Sun, Oct 26, 2025 at 01:18:54PM -0700, Xin Li (Intel) wrote:
> @@ -36,6 +41,7 @@ noinstr unsigned long __this_cpu_ist_top_va(enum exception_stack_ordering stack)
> {
> return __this_cpu_ist_bottom_va(stack) + EXCEPTION_STKSZ;
> }
> +EXPORT_SYMBOL_FOR_MODULES(__this_cpu_ist_top_va, "kvm-intel");

Why is this function name still kept with the "__" prefix but it is being
exported at the same time?

It looks to me like we're exporting the wrong thing as the "__" kinda says it
is an internal helper.

Just drop the prefix and call it something more sensible please. The caller
couldn't care less about "ist_top_va".

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette