]> git.proxmox.com Git - mirror_qemu.git/commit - hw/mem/pc-dimm.c
pc-dimm: merge get_(vmstate_)memory_region()
authorDavid Hildenbrand <david@redhat.com>
Tue, 19 Jun 2018 13:41:37 +0000 (15:41 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jun 2018 17:05:33 +0000 (19:05 +0200)
commita57d1911222bba79bda543568e925635461ead82
tree320b6d880137c4ed35f6c1b820feb145859a6090
parent7943e97b858e64eddf0f3395427e58c5cc00a7d9
pc-dimm: merge get_(vmstate_)memory_region()

Importantly, get_vmstate_memory_region() should also fail with a proper
error if called before the device is realized. For a PCDIMM, both functions
are to return the same thing, so share the implementation.

All current users are called after the device has been realized, so we
can expect the calls to succeed.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180619134141.29478-9-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/mem/pc-dimm.c
include/hw/mem/pc-dimm.h