From: Juan Quintela <quintela@redhat.com>
To: Laurent Vivier <lvivier@redhat.com>
Cc: qemu-devel@nongnu.org, dgilbert@redhat.com, peterx@redhat.com
Subject: Re: [Qemu-devel] [PATCH 1/3] migration: Use savevm_handlers instead of loadvm copy
Date: Wed, 24 May 2017 16:35:43 +0200 [thread overview]
Message-ID: <87o9ui5nls.fsf@secure.mitica> (raw)
In-Reply-To: <6c8b845f-fca7-5208-7097-8c4408dea004@redhat.com> (Laurent Vivier's message of "Wed, 24 May 2017 15:32:57 +0200")
Laurent Vivier <lvivier@redhat.com> wrote:
> On 24/05/2017 10:55, Juan Quintela wrote:
>> From: Juan Quintela <quintela@trasno.org>
>>
>> There is no reason for having the loadvm_handlers at all. There is
>> only one use, and we can use the savevm handlers.
>>
>> We will remove the loadvm handlers on a following patch.
>>
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> + QTAILQ_FOREACH(se, &savevm_state.handlers, entry) {
>> + if (se->section_id == section_id) {
>> break;
>> }
>> }
>> - if (le == NULL) {
>> + if (se == NULL) {
>> error_report("Unknown savevm section %d", section_id);
>> return -EINVAL;
>> }
>>
>> - ret = vmstate_load(f, le->se, le->version_id);
>> + ret = vmstate_load(f, se, se->version_id);
> Are you sure you can replace le->version_id by se->version?
>
> Because according to code in qemu_loadvm_section_start_full(),
> we can have le->version_id <= se->version_id.
You are right. We don't use basically anymore version_id, but we used
to use it.
I will arrive to a different solution. Thanks a lot.
Later, Juan.
next prev parent reply other threads:[~2017-05-24 14:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-24 8:55 [Qemu-devel] [PATCH 0/3] Remove of loadvm handlers Juan Quintela
2017-05-24 8:55 ` [Qemu-devel] [PATCH 1/3] migration: Use savevm_handlers instead of loadvm copy Juan Quintela
2017-05-24 13:32 ` Laurent Vivier
2017-05-24 14:35 ` Juan Quintela [this message]
2017-05-24 8:55 ` [Qemu-devel] [PATCH 2/3] migration: loadvm handlers are not used Juan Quintela
2017-05-24 8:55 ` [Qemu-devel] [PATCH 3/3] migration: Remove section_id parameter from vmstate_load Juan Quintela
2017-05-24 9:41 ` [Qemu-devel] [PATCH 0/3] Remove of loadvm handlers Peter Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o9ui5nls.fsf@secure.mitica \
--to=quintela@redhat.com \
--cc=dgilbert@redhat.com \
--cc=lvivier@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.