summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2018-03-12 18:21:22 +0100
committerMichael S. Tsirkin2018-03-20 15:40:37 +0100
commit29d8fa7f734ec4c55135e85e2d25d1650c8c5985 (patch)
tree1770ce9327ed526a640b699e3fdfc2cb28ff3d1d
parentvhost: Huge page align and merge (diff)
downloadqemu-29d8fa7f734ec4c55135e85e2d25d1650c8c5985.tar.gz
qemu-29d8fa7f734ec4c55135e85e2d25d1650c8c5985.tar.xz
qemu-29d8fa7f734ec4c55135e85e2d25d1650c8c5985.zip
postcopy: Allow shared memory
Now that we have the mechanisms in here, allow shared memory in a postcopy. Note that QEMU can't tell who all the users of shared regions are and thus can't tell whether all the users of the shared regions have appropriate support for postcopy. Those devices that explicitly support shared memory (e.g. vhost-user) must check, but it doesn't stop weirder configurations causing problems. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--migration/postcopy-ram.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index 7d4396fe95..efd77939af 100644
--- a/migration/postcopy-ram.c
+++ b/migration/postcopy-ram.c
@@ -215,12 +215,6 @@ static int test_ramblock_postcopiable(const char *block_name, void *host_addr,
RAMBlock *rb = qemu_ram_block_by_name(block_name);
size_t pagesize = qemu_ram_pagesize(rb);
- if (qemu_ram_is_shared(rb)) {
- error_report("Postcopy on shared RAM (%s) is not yet supported",
- block_name);
- return 1;
- }
-
if (length % pagesize) {
error_report("Postcopy requires RAM blocks to be a page size multiple,"
" block %s is 0x" RAM_ADDR_FMT " bytes with a "