[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/7 V8] migration/ram: Add check and info message to
From: |
junyan . he |
Subject: |
[Qemu-devel] [PATCH 6/7 V8] migration/ram: Add check and info message to nvdimm post copy. |
Date: |
Tue, 10 Jul 2018 14:06:28 +0800 |
From: Junyan He <address@hidden>
The nvdimm kind memory does not support post copy now.
We disable post copy if we have nvdimm memory and print some
log hint to user.
Signed-off-by: Junyan He <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
---
migration/ram.c | 9 +++++++++
1 file changed, 9 insertions(+)
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();
}
--
2.7.4
- [Qemu-devel] [PATCH 0/7 V8] nvdimm: guarantee persistence of QEMU writes to persistent memory, junyan . he, 2018/07/10
- [Qemu-devel] [PATCH 2/7 V8] memory, exec: switch file ram allocation functions to 'flags' parameters, junyan . he, 2018/07/10
- [Qemu-devel] [PATCH 1/7 V8] memory, exec: Expose all memory block related flags., junyan . he, 2018/07/10
- [Qemu-devel] [PATCH 3/7 V8] hostmem-file: add the 'pmem' option, junyan . he, 2018/07/10
- [Qemu-devel] [PATCH 4/7 V8] configure: add libpmem support, junyan . he, 2018/07/10
- [Qemu-devel] [PATCH 6/7 V8] migration/ram: Add check and info message to nvdimm post copy.,
junyan . he <=
- [Qemu-devel] [PATCH 5/7 V8] mem/nvdimm: ensure write persistence to PMEM in label emulation, junyan . he, 2018/07/10
- [Qemu-devel] [PATCH 7/7 V8] migration/ram: ensure write persistence on loading all data to PMEM., junyan . he, 2018/07/10