[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3caa56dc-ec80-a172-a632-42689aaf6f0b@redhat.com>
Date: Mon, 14 Feb 2022 18:22:44 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: Peter Gonda <pgonda@...gle.com>
Cc: kvm list <kvm@...r.kernel.org>,
Sean Christopherson <seanjc@...gle.com>,
Marc Orr <marcorr@...gle.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] KVM: SEV: Allow SEV intra-host migration of VM with
mirrors
On 2/14/22 16:52, Peter Gonda wrote:
> On Mon, Feb 14, 2022 at 5:57 AM Paolo Bonzini <pbonzini@...hat.com> wrote:
>>
>> On 2/11/22 20:36, Peter Gonda wrote:
>>> + list_cut_before(&dst->mirror_vms, &src->mirror_vms, &src->mirror_vms);
>>> + list_for_each_entry_safe(mirror, tmp, &dst->mirror_vms,
>>> + mirror_entry) {
>>
>> Is list_for_each_entry_safe actually necessary here? (It would be if
>> you used list_add/list_del instead of list_cut_before).
>
> I don't think so, I think we could use list_for_each_entry here. Do
> you want me to send another revision?
No, I can do that myself, thanks!
Paolo
Powered by blists - more mailing lists