Re: [PATCH v2] x86: Add a test for AMD SEV-ES #VC handling

From: Borislav Petkov
Date: Tue Jun 01 2021 - 13:03:01 EST


On Tue, Jun 01, 2021 at 11:41:31AM -0500, Tom Lendacky wrote:
> > +ifdef CONFIG_AMD_MEM_ENCRYPT_TEST_VC
> > +CFLAGS_sev.o += -fno-ipa-sra
> > +endif
>
> Maybe add something in the commit message as to why this is needed.

Or even better - in a comment above it. Commit messages are harder to
find when time passes and other commits touch this line and you have to
go and do git archeology just to figure out why this was done...

--
Regards/Gruss,
Boris.

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