qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] block-migration: fix pending() return value


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [Qemu-devel] [PATCH] block-migration: fix pending() return value
Date: Fri, 19 Dec 2014 14:44:32 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Hi there.. Can someone review my bug fix? I'll surely fix typos in description after it.

Best regards,
Vladimir

On 11.12.2014 18:07, Eric Blake wrote:
On 12/11/2014 04:55 AM, Vladimir Sementsov-Ogievskiy wrote:
Because of wrong return value of .save_live_pending() in
block-migration, migration finishes before the whole disk
is transferred. Such situation occures when the migration
s/occures/occurs/

process is fast enouth, for example when source and dest
s/enouth/enough/

are on the same host.

If in the bulk phase we return something < max_size, we will skip
transferring the tail of the device. Currently we have "set pending to
BLOCK_SIZE if it is zero" for bulk phase, but there no guarantee, that
it will be < max_size.

True approach is to return, for example, max_size+1 when we are in the
bulk phase.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---
  block-migration.c | 4 ++--
I'll let someone else review the code proper.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]