[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V6 6/7] migration/ram: Add check and info message to
From: |
junyan . he |
Subject: |
[Qemu-devel] [PATCH V6 6/7] migration/ram: Add check and info message to nvdimm post copy. |
Date: |
Fri, 1 Jun 2018 16:10: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>
---
migration/ram.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/migration/ram.c b/migration/ram.c
index c53e836..aa0c6f0 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -3397,6 +3397,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 V6 2/7] memory, exec: switch file ram allocation functions to 'flags' parameters, (continued)
- [Qemu-devel] [PATCH V6 2/7] memory, exec: switch file ram allocation functions to 'flags' parameters, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 3/7] hostmem-file: add the 'pmem' option, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 4/7] configure: add libpmem support, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 5/7] mem/nvdimm: ensure write persistence to PMEM in label emulation, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 6/7] migration/ram: Add check and info message to nvdimm post copy.,
junyan . he <=
- [Qemu-devel] [PATCH V6 7/7] migration/ram: ensure write persistence on loading all data to PMEM., junyan . he, 2018/06/01
- Re: [Qemu-devel] [PATCH V6 0/7] nvdimm: guarantee persistence of QEMU writes to persistent memory, no-reply, 2018/06/01
- Re: [Qemu-devel] [PATCH V6 0/7] nvdimm: guarantee persistence of QEMU writes to persistent memory, no-reply, 2018/06/01
- Re: [Qemu-devel] [PATCH V6 0/7] nvdimm: guarantee persistence of QEMU writes to persistent memory, Igor Mammedov, 2018/06/12