]> git.proxmox.com Git - mirror_qemu.git/commit
memory: allow creating MemoryRegions before accelerators
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 Oct 2020 07:52:01 +0000 (03:52 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 17:51:56 +0000 (12:51 -0500)
commit0a2949e0be1d7320e4714b26ef60ac4d874dd64f
treefec5f2f31b2165192480ad7dead84da26d4ebdb8
parent0572f558cbc45acdd13ae3548c06ce650641f292
memory: allow creating MemoryRegions before accelerators

Compute the DIRTY_MEMORY_CODE bit in memory_region_get_dirty_log_mask
instead of memory_region_init_*.  This makes it possible to allocate
memory backend objects at any time.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
softmmu/memory.c
softmmu/vl.c