From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Jay Zhou <jianjay.zhou@huawei.com>
Cc: pbonzini@redhat.com, rkrcmar@redhat.com, qemu-devel@nongnu.org,
quintela@redhat.com, armbru@redhat.com, arei.gonglei@huawei.com,
zhang.zhanghailiang@huawei.com, wangxinxin.wang@huawei.com,
weidong.huang@huawei.com, aarcange@redhat.com,
jdenemar@redhat.com
Subject: Re: [Qemu-devel] [PATCH] migration: optimize the downtime
Date: Mon, 31 Jul 2017 14:33:54 +0100 [thread overview]
Message-ID: <20170731133354.GA3095@work-vm> (raw)
In-Reply-To: <597ED67B.4000904@huawei.com>
* Jay Zhou (jianjay.zhou@huawei.com) wrote:
> Hi Dave,
>
> On 2017/7/25 18:34, Dr. David Alan Gilbert wrote:
> > > After checking the codes of the newest libvirt, I think it is the same
> > > in the qemuMigrationWaitForCompletion function, which is used to poll
> > > qemu every 50ms.
> >
> > Checking with Jiri Denemark (added to cc), newer libvirt should use
> > events when available - but that polling code is there to cope with
> > older qemu's. So with a newer qemu, i think it should spot the
> > COMPLETED event.
> >
>
> I do tests on the newest libvirt(v3.6.0) + newest qemu(v2.9.90,
> v2.10.0-rc0-29-ga588c49-dirty). The log added indicates that the source
> side libvirt spots the COMPLETE event after the cleanup of the source side
> qemu, i.e. 300ms still exists.
OK, thanks for trying it.
I don't quite understand why in this case - migration_completion sets
the state to COMPLETE and I think that's done outside the lock and that
happens a bit before the retaking of the lock and then the call
to the savevm_state_cleanup; so yes, thanks for doing the test.
> BTW, I'm not very familiar with libvirt, if there is something special to
> configure or I'm missing something, please let me know.
I don't think you should need to.
Dave
> Thanks,
> Jay
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
prev parent reply other threads:[~2017-07-31 13:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-20 3:49 [Qemu-devel] [PATCH] migration: optimize the downtime Jay Zhou
2017-07-20 4:23 ` no-reply
2017-07-21 9:49 ` Dr. David Alan Gilbert
2017-07-21 12:23 ` Jay Zhou
2017-07-24 15:35 ` Dr. David Alan Gilbert
2017-07-24 16:33 ` Paolo Bonzini
2017-07-24 19:03 ` Dr. David Alan Gilbert
2017-07-24 20:38 ` Paolo Bonzini
2017-07-25 19:15 ` Dr. David Alan Gilbert
2017-07-27 14:26 ` Paolo Bonzini
2017-07-25 7:29 ` Jay Zhou
2017-07-25 8:18 ` Paolo Bonzini
2017-07-25 7:09 ` Jay Zhou
2017-07-25 10:34 ` Dr. David Alan Gilbert
2017-07-31 7:04 ` Jay Zhou
2017-07-31 13:33 ` Dr. David Alan Gilbert [this message]
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=20170731133354.GA3095@work-vm \
--to=dgilbert@redhat.com \
--cc=aarcange@redhat.com \
--cc=arei.gonglei@huawei.com \
--cc=armbru@redhat.com \
--cc=jdenemar@redhat.com \
--cc=jianjay.zhou@huawei.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=rkrcmar@redhat.com \
--cc=wangxinxin.wang@huawei.com \
--cc=weidong.huang@huawei.com \
--cc=zhang.zhanghailiang@huawei.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).