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