Skip to content

Commit

Permalink
unset RAMBlock idstr when unregister MemoryRegion
Browse files Browse the repository at this point in the history
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Hu Tao authored and bonzini committed Jun 17, 2014
1 parent 20cfe88 commit b0e56e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion savevm.c
Expand Up @@ -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)
Expand Down

0 comments on commit b0e56e0

Please sign in to comment.