Blame SOURCES/kvm-nvdimm-no-need-to-overwrite-get_vmstate_memory_regio.patch

7711c0
From cd99d0d882fc24428194547adb29399519ea09d5 Mon Sep 17 00:00:00 2001
7711c0
From: Markus Armbruster <armbru@redhat.com>
7711c0
Date: Mon, 29 Oct 2018 07:01:35 +0100
7711c0
Subject: [PATCH 05/22] nvdimm: no need to overwrite
7711c0
 get_vmstate_memory_region()
7711c0
MIME-Version: 1.0
7711c0
Content-Type: text/plain; charset=UTF-8
7711c0
Content-Transfer-Encoding: 8bit
7711c0
7711c0
RH-Author: Markus Armbruster <armbru@redhat.com>
7711c0
Message-id: <20181029070137.21196-2-armbru@redhat.com>
7711c0
Patchwork-id: 82901
7711c0
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 1/3] nvdimm: no need to overwrite get_vmstate_memory_region()
7711c0
Bugzilla: 1620373
7711c0
RH-Acked-by: David Hildenbrand <david@redhat.com>
7711c0
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
7711c0
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
7711c0
RH-Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
7711c0
7711c0
From: David Hildenbrand <david@redhat.com>
7711c0
7711c0
Our parent class (PC_DIMM) provides exactly the same function.
7711c0
7711c0
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
7711c0
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
7711c0
Signed-off-by: David Hildenbrand <david@redhat.com>
7711c0
Message-Id: <20180619134141.29478-7-david@redhat.com>
7711c0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
7711c0
(cherry picked from commit 4ab56d04ede6e0f979fc8e4a54b381e99cf0a255)
7711c0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
7711c0
---
7711c0
 hw/mem/nvdimm.c | 6 ------
7711c0
 1 file changed, 6 deletions(-)
7711c0
7711c0
diff --git a/hw/mem/nvdimm.c b/hw/mem/nvdimm.c
7711c0
index 0c962fd..5f1813d 100644
7711c0
--- a/hw/mem/nvdimm.c
7711c0
+++ b/hw/mem/nvdimm.c
7711c0
@@ -173,11 +173,6 @@ static void nvdimm_write_label_data(NVDIMMDevice *nvdimm, const void *buf,
7711c0
     memory_region_set_dirty(mr, backend_offset, size);
7711c0
 }
7711c0
 
7711c0
-static MemoryRegion *nvdimm_get_vmstate_memory_region(PCDIMMDevice *dimm)
7711c0
-{
7711c0
-    return host_memory_backend_get_memory(dimm->hostmem, &error_abort);
7711c0
-}
7711c0
-
7711c0
 static void nvdimm_class_init(ObjectClass *oc, void *data)
7711c0
 {
7711c0
     PCDIMMDeviceClass *ddc = PC_DIMM_CLASS(oc);
7711c0
@@ -185,7 +180,6 @@ static void nvdimm_class_init(ObjectClass *oc, void *data)
7711c0
 
7711c0
     ddc->realize = nvdimm_realize;
7711c0
     ddc->get_memory_region = nvdimm_get_memory_region;
7711c0
-    ddc->get_vmstate_memory_region = nvdimm_get_vmstate_memory_region;
7711c0
 
7711c0
     nvc->read_label_data = nvdimm_read_label_data;
7711c0
     nvc->write_label_data = nvdimm_write_label_data;
7711c0
-- 
7711c0
1.8.3.1
7711c0