I don't see why we shouldn't apply all settings to make it look like the surrounding RAM (and enable proper VMA merging).
Note: memory backend settings might have overridden these settings. We would need a callback to let the memory backend fix that up. Reviewed-by: Richard Henderson <[email protected]> Reviewed-by: Peter Xu <[email protected]> Cc: Richard Henderson <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: Igor Mammedov <[email protected]> Signed-off-by: David Hildenbrand <[email protected]> --- exec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exec.c b/exec.c index a0a8d93fee..1fc1fa237e 100644 --- a/exec.c +++ b/exec.c @@ -2516,8 +2516,7 @@ void qemu_ram_remap(ram_addr_t addr, ram_addr_t length) length, addr); exit(1); } - memory_try_enable_merging(vaddr, length); - qemu_ram_setup_dump(vaddr, length); + qemu_ram_apply_settings(vaddr, length); } } } -- 2.24.1
