Re: [PATCH v2] KVM: SEV: Allow SEV intra-host migration of VM with mirrors

From: Paolo Bonzini
Date: Fri Feb 18 2022 - 04:43:54 EST


On 2/11/22 20:36, Peter Gonda wrote:
- WARN_ON(sev->num_mirrored_vms);
+ WARN_ON(!list_empty(&sev->mirror_vms));
if (!sev_guest(kvm))
return;
@@ -2049,11 +2071,9 @@ void sev_vm_destroy(struct kvm *kvm)

Note, the WARN must now be moved after "if (!sev_guest(kvm))" (before, num_mirrored_vms was initialized to 0).

Paolo