From: Eric Blake <eblake@redhat.com>
To: "Zhanghaoyu (A)" <haoyu.zhang@huawei.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Gleb Natapov <gleb@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"paolo.bonzini@gmail.com" <paolo.bonzini@gmail.com>,
Marcelo Tosatti <mtosatti@redhat.com>
Cc: "Huangweidong (C)" <weidong.huang@huawei.com>,
Luonengjun <luonengjun@huawei.com>,
"Wangrui (K)" <moon.wangrui@huawei.com>
Subject: Re: [Qemu-devel] [PATCH] migration: avoid starting a new migration task while the previous one still exist
Date: Mon, 04 Nov 2013 06:59:10 -0700 [thread overview]
Message-ID: <5277A82E.5060605@redhat.com> (raw)
In-Reply-To: <D3E216785288A145B7BC975F83A2ED1043EF0F27@szxeml556-mbx.china.huawei.com>
[-- Attachment #1: Type: text/plain, Size: 1440 bytes --]
On 11/04/2013 04:26 AM, Zhanghaoyu (A) wrote:
> Avoid starting a new migration task while the previous one still exist.
>
> Signed-off-by: Zeng Junliang <zengjunliang@huawei.com>
> ---
It's best to put comments here...
> migration.c | 34 ++++++++++++++++++++++------------
> 1 files changed, 22 insertions(+), 12 deletions(-)
...
> s->downtime = end_time - start_time;
> -- 1.7.3.1.msysgit.0 BTW, while error happened during migration, need
> the "erroring" state to avoid starting a new migration task while
> current migration task still exist? And, do the new added migration
> states need to be reported to libvirt?
...rather than here, since most mail clients will strip anything after
the '-- ' separator output by git as if it were the signature, making it
very difficult to reply to (as you can see, my mailer corrupted the
formatting of your question due to how I forced it to reply to your
signature).
As to whether libvirt needs to know about the state, I'm not sure.
Libvirt already has its own code to prevent concurrent attempts at
migration, so theoretically libvirt should never trip the situation that
you appear to be coding for. Perhaps providing more details in the
commit message about how to actually get into the situation will make it
easier to evaluate.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]
prev parent reply other threads:[~2013-11-04 13:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-04 11:26 [Qemu-devel] [PATCH] migration: avoid starting a new migration task while the previous one still exist Zhanghaoyu (A)
2013-11-04 11:30 ` Paolo Bonzini
2013-11-05 2:23 ` Zhanghaoyu (A)
2013-11-05 9:15 ` Paolo Bonzini
2013-11-06 1:50 ` Zhanghaoyu (A)
2013-11-06 9:04 ` Paolo Bonzini
2013-11-04 13:59 ` Eric Blake [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=5277A82E.5060605@redhat.com \
--to=eblake@redhat.com \
--cc=gleb@redhat.com \
--cc=haoyu.zhang@huawei.com \
--cc=luonengjun@huawei.com \
--cc=moon.wangrui@huawei.com \
--cc=mst@redhat.com \
--cc=mtosatti@redhat.com \
--cc=paolo.bonzini@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=weidong.huang@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).