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