Re: [PATCH Part2 RFC v4 26/40] KVM: SVM: Add KVM_SEV_SNP_LAUNCH_FINISH command

From: Sean Christopherson
Date: Mon Jul 19 2021 - 16:55:38 EST


On Mon, Jul 19, 2021, Brijesh Singh wrote:
>
> On 7/19/21 2:14 PM, Sean Christopherson wrote:
> >
> > Where? I feel like I'm missing something. The only change to sev_free_vcpu() I
> > see is that addition of the rmpupdate(), I don't see any reclaim path.
>
> Clearing of the immutable bit (aka reclaim) is done by the firmware after
> the command was successful.

Ah, which is why the failure path has to do manual reclaim of the immutable page.
Thanks!