From: Peter Lieven <lieven-lists@dlhnet.de>
To: Eric Blake <eblake@redhat.com>
Cc: aik@ozlabs.ru, pbonzini@redhat.com, Peter Lieven <pl@kamp.de>,
qemu-devel@nongnu.org, quintela@redhat.com
Subject: Re: [Qemu-devel] [PATCH 1/2] Revert "migration: do not sent zero pages in bulk stage"
Date: Thu, 06 Jun 2013 16:26:33 +0200 [thread overview]
Message-ID: <51B09C19.8090002@dlhnet.de> (raw)
In-Reply-To: <1586032558.12669884.1370520984709.JavaMail.root@redhat.com>
On 06.06.2013 14:16, Eric Blake wrote:
> ----- Original Message -----
>> Not sending zero pages breaks migration if a page is zero
>> at the source but not at the destination. This can e.g. happen
>> if different BIOS versions are used at source and destination.
>> It has also been reported that migration on pseries is completely
>> broken with this patch.
>>
>> This reverts commit f1c72795af573b24a7da5eb52375c9aba8a37972.
>>
>> +++ b/qapi-schema.json
>> @@ -499,9 +499,7 @@
>> #
>> # @total: total amount of bytes involved in the migration process
>> #
>> -# @duplicate: number of duplicate (zero) pages (since 1.2)
>> -#
>> -# @skipped: number of skipped zero pages (since 1.5)
>> +# @duplicate: number of duplicate pages (since 1.2)
>> #
>> # @normal : number of normal pages (since 1.2)
>> #
>> @@ -514,8 +512,8 @@
>> ##
>> { 'type': 'MigrationStats',
>> 'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int' ,
>> - 'duplicate': 'int', 'skipped': 'int', 'normal': 'int',
>> - 'normal-bytes': 'int', 'dirty-pages-rate' : 'int' } }
>> + 'duplicate': 'int', 'normal': 'int', 'normal-bytes': 'int',
>> + 'dirty-pages-rate' : 'int' } }
> This hunk is questionable. Removing something that we have previously sent
> over the wire may break clients that are expecting this field to exist.
> Rather than reverting the entire patch, you should consider keeping this
> field present in QMP, even if you now always populate it with 0.
>
You are right. I might still account zero pages in the bulk phase to give this
field a meaning. These pages are very likely not written on the destination except
for the cornercases. What do you think?
Peter
next prev parent reply other threads:[~2013-06-06 14:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-06 8:36 [Qemu-devel] [PATCH 0/2] fix migration of zero pages Peter Lieven
2013-06-06 8:36 ` [Qemu-devel] [PATCH 1/2] Revert "migration: do not sent zero pages in bulk stage" Peter Lieven
2013-06-06 12:16 ` Eric Blake
2013-06-06 14:26 ` Peter Lieven [this message]
2013-06-15 15:28 ` Eric Blake
2013-06-19 10:10 ` Paolo Bonzini
2013-06-06 8:36 ` [Qemu-devel] [PATCH 2/2] migration: do not overwrite zero pages Peter Lieven
2013-06-19 10:10 ` Paolo Bonzini
2013-06-24 14:59 ` Alexey Kardashevskiy
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=51B09C19.8090002@dlhnet.de \
--to=lieven-lists@dlhnet.de \
--cc=aik@ozlabs.ru \
--cc=eblake@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.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 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.