Re: [PATCH v8 10/21] x86/virt/seamldr: Shut down the current TDX module

From: Dave Hansen

Date: Thu Apr 30 2026 - 14:53:56 EST


On 4/27/26 08:28, Chao Gao wrote:
> static int do_seamldr_install_module(void *seamldr_params)
> {
> enum module_update_state newstate, curstate = MODULE_UPDATE_START;
> + int cpu = smp_processor_id();
> + bool primary;
> int ret = 0;
>
> + primary = cpumask_first(cpu_online_mask) == cpu;

Isn't cpumask_first(cpu_online_mask)==0, always? I thought CPU 0 could
never be offlined.