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