|
|
357786 |
From 4251549eca8b113b508f6bf6a7aaca2541acda61 Mon Sep 17 00:00:00 2001
|
|
|
357786 |
From: "plai@redhat.com" <plai@redhat.com>
|
|
|
357786 |
Date: Fri, 31 Aug 2018 16:25:58 +0200
|
|
|
357786 |
Subject: [PATCH 16/29] migration/ram: Add check and info message to nvdimm
|
|
|
357786 |
post copy.
|
|
|
357786 |
|
|
|
357786 |
RH-Author: plai@redhat.com
|
|
|
357786 |
Message-id: <1535732759-22481-9-git-send-email-plai@redhat.com>
|
|
|
357786 |
Patchwork-id: 82009
|
|
|
357786 |
O-Subject: [RHEL7.6 PATCH BZ 1539280 8/9] migration/ram: Add check and info message to nvdimm post copy.
|
|
|
357786 |
Bugzilla: 1539280
|
|
|
357786 |
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
357786 |
RH-Acked-by: Pankaj Gupta <pagupta@redhat.com>
|
|
|
357786 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
357786 |
|
|
|
357786 |
From: Junyan He <junyan.he@intel.com>
|
|
|
357786 |
|
|
|
357786 |
The nvdimm kind memory does not support post copy now.
|
|
|
357786 |
We disable post copy if we have nvdimm memory and print some
|
|
|
357786 |
log hint to user.
|
|
|
357786 |
|
|
|
357786 |
Signed-off-by: Junyan He <junyan.he@intel.com>
|
|
|
357786 |
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
357786 |
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
357786 |
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
357786 |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
357786 |
(cherry picked from commit 469dd51bc664979f159d47885997d482991394b8)
|
|
|
357786 |
Signed-off-by: Paul Lai <plai@redhat.com>
|
|
|
357786 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
357786 |
---
|
|
|
357786 |
migration/ram.c | 9 +++++++++
|
|
|
357786 |
1 file changed, 9 insertions(+)
|
|
|
357786 |
|
|
|
357786 |
diff --git a/migration/ram.c b/migration/ram.c
|
|
|
357786 |
index 04b5df5..f850fd0 100644
|
|
|
357786 |
--- a/migration/ram.c
|
|
|
357786 |
+++ b/migration/ram.c
|
|
|
357786 |
@@ -3120,6 +3120,15 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id)
|
|
|
357786 |
|
|
|
357786 |
static bool ram_has_postcopy(void *opaque)
|
|
|
357786 |
{
|
|
|
357786 |
+ RAMBlock *rb;
|
|
|
357786 |
+ RAMBLOCK_FOREACH_MIGRATABLE(rb) {
|
|
|
357786 |
+ if (ramblock_is_pmem(rb)) {
|
|
|
357786 |
+ info_report("Block: %s, host: %p is a nvdimm memory, postcopy"
|
|
|
357786 |
+ "is not supported now!", rb->idstr, rb->host);
|
|
|
357786 |
+ return false;
|
|
|
357786 |
+ }
|
|
|
357786 |
+ }
|
|
|
357786 |
+
|
|
|
357786 |
return migrate_postcopy_ram();
|
|
|
357786 |
}
|
|
|
357786 |
|
|
|
357786 |
--
|
|
|
357786 |
1.8.3.1
|
|
|
357786 |
|