|
@@ -1978,6 +1978,7 @@ void address_space_destroy(AddressSpace *as)
|
|
as->root = NULL;
|
|
as->root = NULL;
|
|
memory_region_transaction_commit();
|
|
memory_region_transaction_commit();
|
|
QTAILQ_REMOVE(&address_spaces, as, address_spaces_link);
|
|
QTAILQ_REMOVE(&address_spaces, as, address_spaces_link);
|
|
|
|
+ address_space_unregister(as);
|
|
|
|
|
|
/* At this point, as->dispatch and as->current_map are dummy
|
|
/* At this point, as->dispatch and as->current_map are dummy
|
|
* entries that the guest should never use. Wait for the old
|
|
* entries that the guest should never use. Wait for the old
|