From: Juan Quintela <quintela@redhat.com>
To: Gonglei <arei.gonglei@huawei.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
"chenliang (T)" <chenliang88@huawei.com>,
"pl@kamp.de" <pl@kamp.de>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"owasserm@redhat.com" <owasserm@redhat.com>,
"aliguori@amazon.com" <aliguori@amazon.com>,
"pbonzini@redhat.com" <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/7] migration: Add counters of updating the dirty bitmap
Date: Thu, 06 Mar 2014 14:19:25 +0100 [thread overview]
Message-ID: <877g87mplu.fsf@elfo.mitica> (raw)
In-Reply-To: <531852E0.60805@huawei.com> (Gonglei's message of "Thu, 6 Mar 2014 18:50:08 +0800")
Gonglei <arei.gonglei@huawei.com> wrote:
> On 2014/3/6 0:18, Juan Quintela wrote:
>
>> "Gonglei (Arei)" <arei.gonglei@huawei.com> wrote:
>>> Add counters to log the times of updating the dirty bitmap.
>>>
>>> Signed-off-by: ChenLiang <chenliang88@huawei.com>
>>> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
>>
>> As told by Eric, I am with this change, but can we move the code to the
>> same place that the rest of the statistics?
>>
>> Thanks, Juan.
>
> OK, I'm pleasure to do it. What's your plan?
Instead of a local variable, look at includemigration/state/migration.h
inside MigrationState there are variables like setup_time.
You can add your variable there. Interesting bits is that you need to
add it also to:
qapi-schema.json: MigrationInfo (looks for @setup-time),
qmp-commands.hx: look for setup-time
hmp.c: look again for setup_time
migration.c: look for setup_time inside qemu_qeery_migrate()
That are the places to add something to migration stats and that appears
everywhere.
Thanks, Juan.
prev parent reply other threads:[~2014-03-06 13:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-28 4:08 [Qemu-devel] [PATCH 2/7] migration: Add counters of updating the dirty bitmap Gonglei (Arei)
2014-02-28 9:37 ` Dr. David Alan Gilbert
2014-02-28 13:11 ` Eric Blake
2014-02-28 13:26 ` 陈梁
2014-03-05 16:18 ` Juan Quintela
2014-03-06 10:50 ` Gonglei
2014-03-06 13:19 ` Juan Quintela [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=877g87mplu.fsf@elfo.mitica \
--to=quintela@redhat.com \
--cc=aliguori@amazon.com \
--cc=arei.gonglei@huawei.com \
--cc=chenliang88@huawei.com \
--cc=owasserm@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=pl@kamp.de \
--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 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).