]> git.proxmox.com Git - qemu.git/blobdiff - cpu-common.h
migration: stable ram block ordering
[qemu.git] / cpu-common.h
index a543b5d7cfcb14a432603a97681416ee91752e39..bb6b137e16b279d6823e1c7a69c8d6a9ee1a520b 100644 (file)
@@ -46,6 +46,9 @@ ram_addr_t qemu_ram_alloc(DeviceState *dev, const char *name, ram_addr_t size);
 void qemu_ram_free(ram_addr_t addr);
 /* This should only be used for ram local to a device.  */
 void *qemu_get_ram_ptr(ram_addr_t addr);
+/* Same but slower, to use for migration, where the order of
+ * RAMBlocks must not change. */
+void *qemu_safe_ram_ptr(ram_addr_t addr);
 /* This should not be used by devices.  */
 int qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr);
 ram_addr_t qemu_ram_addr_from_host_nofail(void *ptr);