Re: [Qemu-devel] [RFC V2, PATCH 0/2] Checkpoint-assisted migration proposal

2015-11-25 Thread Bohdan Trach
always happens without checkpoint. We can rework this in the next revisions, if it's required. One option would not to to store hashes in the migration destination, but to load the checkpoint explicitly in the migration source before migration. -- With best regards, Bohdan Trach

[Qemu-devel] [PATCH RFC 2/2] migration: use checkpoint during migration

2015-11-24 Thread Bohdan Trach
Extend memory page saving and loading functions to utilize information available in checkpoints to avoid sending full pages over the network. Signed-off-by: Bohdan Trach --- migration/ram.c | 131 trace-events| 5 +++ 2 files

[Qemu-devel] [RFC V2, PATCH 0/2] Checkpoint-assisted migration proposal

2015-11-24 Thread Bohdan Trach
-assisted migration feature as proposed earlier on this list [1]. It allows reusing existing memory snapshots of guests to speed up migration of VMs between physical hosts. [1] https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg01555.html Bohdan Trach (2): migration: implement checkpoint

[Qemu-devel] [PATCH RFC 1/2] migration: implement checkpoint loading

2015-11-24 Thread Bohdan Trach
This commit adds functions used to open the checkpoint saved by the dump-guest-memory command and populate the hash table used by the checkpoint-assisted migration mechanism. SHA256 is used to checkpoint the pages. Only ELF memory dump format is supported at the moment. Signed-off-by: Bohdan

Re: [Qemu-devel] [PATCH RFC 3/3] migration: use checkpoint during migration

2015-11-17 Thread Bohdan Trach
ASH flag? > Sorry for not stating this clear enough. We will remove this flag from the code, and send pages with SAVE_FLAG_PAGE instead. In this case the destination will compute the hash. > -- > Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK > -- With best regards, Bohdan Trach

Re: [Qemu-devel] [PATCH RFC 3/3] migration: use checkpoint during migration

2015-11-17 Thread Bohdan Trach
uaranteed to resend the page again if it was > written > to, but that still doesn't make these two things match; although as I say > above > I'm not sure why SAVE_FLAG_PAGE_HASH exists. This is true. In this case, we will just delete the SAVE_FLAG_PAGE_HASH flag. > --

Re: [Qemu-devel] [PATCH RFC 1/3] memory: Add dump-pc-mem command for checkpointing

2015-11-17 Thread Bohdan Trach
Hi David, thank you for the feedback! On 11/16/2015 05:46 PM, Dr. David Alan Gilbert wrote: > * Bohdan Trach (bv.tr...@gmail.com) wrote: >> From: Bohdan Trach >> >> dump-pc-mem command is added for checkpointing guest memory to >> file. Only system RAM region is save

Re: [Qemu-devel] [PATCH RFC 2/3] memory: implement checkpoint handling

2015-11-17 Thread Bohdan Trach
the same > VM or one where the page got moved but unchanged? Here we check if the size of the main memory block matches the checkpoint. As we didn't use any format, we wanted to detect at least some cases where a checkpoint from a different VM is passed to Qemu by accident. > -- > Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK > -- With best regards, Bohdan Trach

Re: [Qemu-devel] [PATCH RFC, Ping 0/3] Checkpoint-assisted migration proposal

2015-08-19 Thread Bohdan Trach
://patchwork.ozlabs.org/patch/462045/ Description: https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg01555.html https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg02014.html -- With best regards, Bohdan Trach On 06/09/2015 12:00 PM, Bohdan Trach wrote: > Ping. > > The patches ar

Re: [Qemu-devel] [PATCH RFC, Ping 0/3] Checkpoint-assisted migration proposal

2015-06-09 Thread Bohdan Trach
.html Also, this code is being extended to also optionally use deduplication and dirty page tracking to save even more bandwidth. -- With best regards, Bohdan Trach On 05/11/2015 01:13 PM, Amit Shah wrote: > On (Fri) 24 Apr 2015 [13:38:54], Bohdan Trach wrote: >> Ping. > > It's

Re: [Qemu-devel] [PATCH RFC, Ping 0/3] Checkpoint-assisted migration proposal

2015-04-24 Thread Bohdan Trach
Trach wrote: > From: Bohdan Trach > > This patchset contains a checkpoint-assisted migration feature as > proposed earlier on this list [1]. It allows reusing existing memory > snapshots of guests to speed up migration of VMs between physical > hosts. > > [1] https://li

Re: [Qemu-devel] [PATCH RFC 1/3] memory: Add dump-pc-mem command for checkpointing

2015-04-18 Thread Bohdan Trach
Thank You for the review. Please see comments inline. On 04/17/2015 03:53 PM, Eric Blake wrote: > On 04/17/2015 06:13 AM, Bohdan Trach wrote: >> From: Bohdan Trach >> >> dump-pc-mem command is added for checkpointing guest memory to >> file. Only system RAM region i

[Qemu-devel] [PATCH RFC 3/3] migration: use checkpoint during migration

2015-04-17 Thread Bohdan Trach
From: Bohdan Trach Extend memory page saving and loading functions to utilize information available in checkpoints to avoid sending full pages over the network. Signed-off-by: Bohdan Trach --- arch_init.c | 167 1 file changed, 158

[Qemu-devel] [PATCH RFC 1/3] memory: Add dump-pc-mem command for checkpointing

2015-04-17 Thread Bohdan Trach
From: Bohdan Trach dump-pc-mem command is added for checkpointing guest memory to file. Only system RAM region is saved. This checkpoint is later used to recover unchanged pages. Signed-off-by: Bohdan Trach --- arch_init.c | 19 +++ hmp-commands.hx | 16

[Qemu-devel] [PATCH RFC 2/3] memory: implement checkpoint handling

2015-04-17 Thread Bohdan Trach
From: Bohdan Trach This commit adds functions, which are used to work with checkpoint files. A new command-line option `-checkpoint` is added, which is used to specify the checkpoint file. Currently, MD5 function from OpenSSL is used to checkpoint memory. Signed-off-by: Bohdan Trach

[Qemu-devel] [PATCH RFC 0/3] Checkpoint-assisted migration proposal

2015-04-17 Thread Bohdan Trach
From: Bohdan Trach This patchset contains a checkpoint-assisted migration feature as proposed earlier on this list [1]. It allows reusing existing memory snapshots of guests to speed up migration of VMs between physical hosts. [1] https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg01555