]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: do not overwrite zero pages
authorPeter Lieven <pl@kamp.de>
Mon, 10 Jun 2013 10:14:20 +0000 (12:14 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 12 Aug 2013 22:16:09 +0000 (17:16 -0500)
commit9f60383b4173c34772251446b0ab83b5c7152f16
tree9be95b41ef1d514bdd9b9a8f9b4895d95baca872
parent64a72fa71fd2b9720c8b70726521c39bdd2c0ea9
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>
(cherry picked from commit 211ea74022f51164a7729030b28eec90b6c99a08)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
arch_init.c