diff options
author | David Hildenbrand <david@redhat.com> | 2018-06-19 15:41:37 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-06-28 19:05:33 +0200 |
commit | a57d1911222bba79bda543568e925635461ead82 (patch) | |
tree | 320b6d880137c4ed35f6c1b820feb145859a6090 /capstone | |
parent | 7943e97b858e64eddf0f3395427e58c5cc00a7d9 (diff) |
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>
Diffstat (limited to 'capstone')
0 files changed, 0 insertions, 0 deletions