diff options
author | David Hildenbrand | 2018-04-23 18:51:22 +0200 |
---|---|---|
committer | Eduardo Habkost | 2018-05-07 15:00:02 +0200 |
commit | 18d11dc910ca2a292b3f12c6a4a7c927b0f226f4 (patch) | |
tree | 99130bedeb745ca043dca307415ec92e7840291a /include/hw/mem | |
parent | pc-dimm: factor out capacity and slot checks into MemoryDevice (diff) | |
download | qemu-18d11dc910ca2a292b3f12c6a4a7c927b0f226f4.tar.gz qemu-18d11dc910ca2a292b3f12c6a4a7c927b0f226f4.tar.xz qemu-18d11dc910ca2a292b3f12c6a4a7c927b0f226f4.zip |
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>
Diffstat (limited to 'include/hw/mem')
-rw-r--r-- | include/hw/mem/memory-device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/mem/memory-device.h b/include/hw/mem/memory-device.h index 3427c7d424..2853b084b5 100644 --- a/include/hw/mem/memory-device.h +++ b/include/hw/mem/memory-device.h @@ -44,5 +44,8 @@ uint64_t get_plugged_memory_size(void); uint64_t memory_device_get_free_addr(MachineState *ms, const uint64_t *hint, uint64_t align, uint64_t size, Error **errp); +void memory_device_plug_region(MachineState *ms, MemoryRegion *mr, + uint64_t addr); +void memory_device_unplug_region(MachineState *ms, MemoryRegion *mr); #endif |