Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync

2015-10-08 Thread Denis V. Lunev
On 10/07/2015 12:44 PM, Paolo Bonzini wrote: On 07/10/2015 08:20, Denis V. Lunev wrote: All calls of this hook will be from ram_save_pending(). At the first call of this hook we need to save the initial size of VM memory and put the migration thread to sleep for decent period (downtime for exa

Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync

2015-10-08 Thread Denis V. Lunev
On 10/07/2015 12:44 PM, Paolo Bonzini wrote: On 07/10/2015 08:20, Denis V. Lunev wrote: +if (migrate_is_test()) { +/* since no data is transfered during estimation all + all measurements below will be incorrect. + as well no need for delays. */ +

Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync

2015-10-07 Thread Dr. David Alan Gilbert
* Denis V. Lunev (d...@openvz.org) wrote: > From: Igor Redko > > The key feature of the test transport is receiving information > about dirty memory. The qemu_test_sync_hook() allows to use > the migration infrastructure(code) for this purpose. > > All calls of this hook will be from ram_save_pe

Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync

2015-10-07 Thread Paolo Bonzini
On 07/10/2015 08:20, Denis V. Lunev wrote: > +if (migrate_is_test()) { > +/* since no data is transfered during estimation all > + all measurements below will be incorrect. > + as well no need for delays. */ > +continue; > +} By

Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync

2015-10-07 Thread Paolo Bonzini
On 07/10/2015 08:20, Denis V. Lunev wrote: > > All calls of this hook will be from ram_save_pending(). > > At the first call of this hook we need to save the initial > size of VM memory and put the migration thread to sleep for > decent period (downtime for example). During this period > guest

[Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync

2015-10-06 Thread Denis V. Lunev
From: Igor Redko The key feature of the test transport is receiving information about dirty memory. The qemu_test_sync_hook() allows to use the migration infrastructure(code) for this purpose. All calls of this hook will be from ram_save_pending(). At the first call of this hook we need to save