Message ID | 1531202789-31006-7-git-send-email-junyan.he@gmx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/migration/ram.c b/migration/ram.c index 1cd98d6..9c03e2b 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -3895,6 +3895,15 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id) static bool ram_has_postcopy(void *opaque) { + RAMBlock *rb; + RAMBLOCK_FOREACH(rb) { + if (ramblock_is_pmem(rb)) { + info_report("Block: %s, host: %p is a nvdimm memory, postcopy" + "is not supported now!", rb->idstr, rb->host); + return false; + } + } + return migrate_postcopy_ram(); }