lkml.org 
[lkml]   [2021]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 4/7] KVM: SEV: Add support for SEV intra host migration
From
On 11/11/21 16:49, Paolo Bonzini wrote:
> +out_dst_cgroup:
> + if (ret < 0) {
> + sev_misc_cg_uncharge(dst_sev);
> +out_dst_put_cgroup:
> + put_misc_cg(dst_sev->misc_cg);
> + dst_sev->misc_cg = NULL;
> + }

Wrong (you must not uncharge if the dst_sev and src_sev cgroup are the
same) _and_ unnecessarily complicated.

I'll send an 8/7 patch as a fixup.

Paolo

\
 
 \ /
  Last update: 2021-11-12 10:36    [W:1.563 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site