[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240423112128.GDZieZuKw8Ca2jiXw9@fat_crate.local>
Date: Tue, 23 Apr 2024 13:21:28 +0200
From: Borislav Petkov <bp@...en8.de>
To: "Nikunj A. Dadhania" <nikunj@....com>
Cc: linux-kernel@...r.kernel.org, thomas.lendacky@....com, x86@...nel.org,
kvm@...r.kernel.org, mingo@...hat.com, tglx@...utronix.de,
dave.hansen@...ux.intel.com, pgonda@...gle.com, seanjc@...gle.com,
pbonzini@...hat.com
Subject: Re: [PATCH v8 06/16] virt: sev-guest: Move SNP Guest command mutex
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
Powered by blists - more mailing lists