Re: [PATCH v8 06/16] virt: sev-guest: Move SNP Guest command mutex

From: Borislav Petkov
Date: Mon Apr 22 2024 - 09:01:07 EST


On Thu, Feb 15, 2024 at 05:01:18PM +0530, Nikunj A Dadhania wrote:
> SNP command mutex is used to serialize the shared buffer access, command
> handling and message sequence number races. Move the SNP guest command
> mutex out of the sev guest driver and provide accessors to sev-guest

And why in the hell are we doing this?

Always, *ALWAYS* make sure a patch's commit message answers *why*
a change is done. This doesn't explain why so I'm reading "just because"
and "just because" doesn't fly.

> driver. Remove multiple lockdep check in sev-guest driver, next patch adds
> a single lockdep check in snp_send_guest_request().

The concept of "next patch" is meaningless once the patch is in git.

--
Regards/Gruss,
Boris.

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