Re: [PATCH v1 1/2] x86/sev: Do not initialize SNP if missing CPUs

From: Borislav Petkov

Date: Fri Apr 03 2026 - 15:55:11 EST


On Fri, Apr 03, 2026 at 11:52:09AM -0600, Tycho Andersen wrote:
> I suppose depends on how the firmware reasons about such things too.
> But it seems like the suggestion of cpus_present_mask is right.

Yes, I think that should work.

And in that check you could dump both masks if they're unequal - hint *%pb or
%pbl as printk format strings:

Documentation/core-api/printk-formats.rst

so that we can get more debug info on what the mismatch actually is.

--
Regards/Gruss,
Boris.

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