migration: do not overwrite zero pages
authorPeter Lieven <pl@kamp.de>
Mon, 10 Jun 2013 10:14:20 +0000 (12:14 +0200)
committerJuan Quintela <quintela@redhat.com>
Thu, 27 Jun 2013 00:36:32 +0000 (02:36 +0200)
commit211ea74022f51164a7729030b28eec90b6c99a08
tree58f143a42096d24fe5f996fe971eb92c55546be4
parent9ef051e5536b6368a1076046ec6c4ec4ac12b5c6
migration: do not overwrite zero pages

on incoming migration do not memset pages to zero if they already read as zero.
this will allocate a new zero page and consume memory unnecessarily. even
if we madvise a MADV_DONTNEED later this will only deallocate the memory
asynchronously.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
arch_init.c