Re: [PATCH v4 07/15] x86/sev: Use the SVSM to create a vCPU when not in VMPL0
From: Borislav Petkov
Date: Fri May 31 2024 - 08:30:50 EST
On Tue, May 28, 2024 at 03:28:28PM -0500, Tom Lendacky wrote:
> I just think it's easier to follow, with specific functions for the
> situation and less indentation. But if you want, I can put it all in one
> function.
Well, if the function were huge and hard to read sure, but right now it
is simple and with single indentation level. There's the other side of
having too many small helpers, leading into not seeing the flow. The
logic we should follow is: if the function is big and fat and has too
many indentation levels, you split into smaller functions.
The "Functions" section in Documentation/process/coding-style.rst has
some blurb on the matter.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette