mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
memory: Rename mem_begin/mem_commit/mem_add helpers
This renames some helpers to reflect better what they do. This should cause no behavioural change. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Message-Id: <20170921085110.25598-9-aik@ozlabs.ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
9950322a59
commit
8629d3fcb7
3 changed files with 9 additions and 15 deletions
6
memory.c
6
memory.c
|
|
@ -910,13 +910,13 @@ static void address_space_update_topology(AddressSpace *as)
|
|||
FlatView *new_view = generate_memory_topology(as->root);
|
||||
int i;
|
||||
|
||||
new_view->dispatch = mem_begin(as);
|
||||
new_view->dispatch = address_space_dispatch_new(new_view);
|
||||
for (i = 0; i < new_view->nr; i++) {
|
||||
MemoryRegionSection mrs =
|
||||
section_from_flat_range(&new_view->ranges[i], new_view);
|
||||
mem_add(new_view, &mrs);
|
||||
flatview_add_to_dispatch(new_view, &mrs);
|
||||
}
|
||||
mem_commit(new_view->dispatch);
|
||||
address_space_dispatch_compact(new_view->dispatch);
|
||||
|
||||
if (!QTAILQ_EMPTY(&as->listeners)) {
|
||||
address_space_update_topology_pass(as, old_view, new_view, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue