]> Git Repo - qemu.git/commit - arch_init.c
migration: do not sent zero pages in bulk stage
authorPeter Lieven <[email protected]>
Tue, 26 Mar 2013 09:58:37 +0000 (10:58 +0100)
committerJuan Quintela <[email protected]>
Tue, 26 Mar 2013 12:32:33 +0000 (13:32 +0100)
commitf1c72795af573b24a7da5eb52375c9aba8a37972
tree9475bdb59345550bb248fad75fa25e598811fe51
parent78d07ae7ac74bcc7f79aeefbaff17fb142f44b4d
migration: do not sent zero pages in bulk stage

during bulk stage of ram migration if a page is a
zero page do not send it at all.
the memory at the destination reads as zero anyway.

even if there is an madvise with QEMU_MADV_DONTNEED
at the target upon receipt of a zero page I have observed
that the target starts swapping if the memory is overcommitted.
it seems that the pages are dropped asynchronously.

this patch also updates QMP to return the number of
skipped pages in MigrationStats.

Signed-off-by: Peter Lieven <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Juan Quintela <[email protected]>
arch_init.c
hmp.c
include/migration/migration.h
migration.c
qapi-schema.json
qmp-commands.hx
This page took 0.027132 seconds and 4 git commands to generate.