From b0e56e0b63f350691b52d3e75e89bb64143fbeff Mon Sep 17 00:00:00 2001 From: Hu Tao Date: Wed, 2 Apr 2014 15:13:27 +0800 Subject: unset RAMBlock idstr when unregister MemoryRegion Signed-off-by: Hu Tao Signed-off-by: Paolo Bonzini --- savevm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'savevm.c') diff --git a/savevm.c b/savevm.c index da8aa2428d..7b2c410ea1 100644 --- a/savevm.c +++ b/savevm.c @@ -1209,7 +1209,7 @@ void vmstate_register_ram(MemoryRegion *mr, DeviceState *dev) void vmstate_unregister_ram(MemoryRegion *mr, DeviceState *dev) { - /* Nothing do to while the implementation is in RAMBlock */ + qemu_ram_unset_idstr(memory_region_get_ram_addr(mr) & TARGET_PAGE_MASK); } void vmstate_register_ram_global(MemoryRegion *mr) -- cgit v1.2.3