]> git.proxmox.com Git - mirror_qemu.git/commit
postcopy: Use temporary for placing zero huge pages
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 24 Feb 2017 18:28:36 +0000 (18:28 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 28 Feb 2017 11:30:23 +0000 (11:30 +0000)
commit41d84210d403a686052fb5fc4c9f027e13e92185
tree2d31a0130c4b60b9e0a2dece43d16b43e1de32bc
parentdf9ff5e1e37982e666216fe9a324d118a30f178f
postcopy: Use temporary for placing zero huge pages

The kernel can't do UFFDIO_ZEROPAGE for huge pages, so we have
to allocate a temporary (always zero) page and use UFFDIO_COPYPAGE
on it.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20170224182844.32452-9-dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
include/migration/migration.h
migration/postcopy-ram.c