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

Dave Hansen
2026-04-30T18:52:50Z

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.