提交 b0e56e0b 编写于 作者: H Hu Tao 提交者: Paolo Bonzini

unset RAMBlock idstr when unregister MemoryRegion

Signed-off-by: NHu Tao <hutao@cn.fujitsu.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 20cfe881
...@@ -1209,7 +1209,7 @@ void vmstate_register_ram(MemoryRegion *mr, DeviceState *dev) ...@@ -1209,7 +1209,7 @@ void vmstate_register_ram(MemoryRegion *mr, DeviceState *dev)
void vmstate_unregister_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) void vmstate_register_ram_global(MemoryRegion *mr)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册