Re: [PATCH v8 3/7] crypto/ccp: Disable CPU hotplug while SNP is active
From: Borislav Petkov
Date: Fri Jun 19 2026 - 19:21:14 EST
On Fri, Jun 19, 2026 at 05:34:37PM -0500, Kalra, Ashish wrote:
> Once SNP host RMP/SNP is enabled at boot, offlining is disabled for the
> entire boot — no re-enable, even if SNP is fully shut down later. In
> comparison, there is the possibility to re-enable CPU hotplugging during SNP
> shutdown path by calling cpuhp_remove_state_nocalls().
I'd let tglx maybe give a better idea but this cpu_hotplug_disable static var
in kernel/cpu.c could get a getter function and be used instead of you
reinventing the wheel in here.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette