Re: [PATCH v14 03/13] x86/sev: Add Secure TSC support for SNP guests
From: Nikunj A. Dadhania
Date: Tue Nov 12 2024 - 03:45:15 EST
On 11/11/2024 7:12 PM, Borislav Petkov wrote:
> On Mon, Nov 11, 2024 at 05:14:43PM +0530, Nikunj A. Dadhania wrote:
>> Memory allocated for the request, response and certs_data is not
>> freed and we will clear the mdesc when sev-guest driver calls
>> snp_msg_alloc().
>
> Ah, right.
>
> Yeah, this was a weird scheme anyway - a static pointer mdesc but then the
> things it points to get dynamically allocated. So yeah, a full dynamic
> allocation makes it a much more normal pattern.
I have pushed the updated tree here: https://github.com/AMDESE/linux-kvm/commits/sectsc-guest-wip/
Will wait for your comments on rest of the patches before I post the next version.
Regards
Nikunj