pc-dimm: move actual plug/unplug of a memory region to MemoryDevice
commit18d11dc910ca2a292b3f12c6a4a7c927b0f226f4
authorDavid Hildenbrand <david@redhat.com>
Mon, 23 Apr 2018 16:51:22 +0000 (23 18:51 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 7 May 2018 13:00:02 +0000 (7 10:00 -0300)
tree99130bedeb745ca043dca307415ec92e7840291a
parent1b6d6af21bd614d61b55a28177299a5c93b95cd9
pc-dimm: move actual plug/unplug of a memory region to MemoryDevice

Registering the memory region for migration has do be done by the owner.
There could be cases, where we don't want to migrate the memory.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180423165126.15441-8-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/mem/memory-device.c
hw/mem/pc-dimm.c
include/hw/mem/memory-device.h