diff options
| author | Dr. David Alan Gilbert | 2017-02-24 19:28:36 +0100 |
|---|---|---|
| committer | Dr. David Alan Gilbert | 2017-02-28 12:30:23 +0100 |
| commit | 41d84210d403a686052fb5fc4c9f027e13e92185 (patch) | |
| tree | 2d31a0130c4b60b9e0a2dece43d16b43e1de32bc /include | |
| parent | postcopy: Plumb pagesize down into place helpers (diff) | |
| download | qemu-41d84210d403a686052fb5fc4c9f027e13e92185.tar.gz qemu-41d84210d403a686052fb5fc4c9f027e13e92185.tar.xz qemu-41d84210d403a686052fb5fc4c9f027e13e92185.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/migration/migration.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h index 08b98e9911..5720c884f4 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -109,6 +109,7 @@ struct MigrationIncomingState { QEMUFile *to_src_file; QemuMutex rp_mutex; /* We send replies from multiple threads */ void *postcopy_tmp_page; + void *postcopy_tmp_zero_page; QEMUBH *bh; |
