Re: [PATCH v8 06/16] virt: sev-guest: Move SNP Guest command mutex
From: Borislav Petkov
Date: Tue Apr 23 2024 - 07:22:13 EST
On Tue, Apr 23, 2024 at 04:12:00PM +0530, Nikunj A. Dadhania wrote:
> Something like below ?
>
> snp_guest_ioctl()
> -> get_report()/get_derived_key()/get_ext_report()
> -> snp_send_guest_request()
> snp_guest_cmd_lock();
> ...
> snp_guest_cmd_lock();
>
> With this the cmd_lock will be private to sev.c and lock/unlock function
> doesn't need to be exported.
Yes, something like that.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette