exec: simplify destruction of the phys map
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 May 2013 10:07:03 +0000 (12:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jul 2013 15:42:45 +0000 (17:42 +0200)
commitb7e95164d1a9969aa591b8a72e05b94d08c49738
tree4bf043c4c8080907452fa1a0cc98a7f4055b4caf
parent058bc4b57f9d6b39d9a6748b4049e1be3fde3dac
exec: simplify destruction of the phys map

Do not bother visiting the radix tree when an address space is destroyed.
After the previous patch, this has become a pointless exercise.  When
called from address_space_destroy_dispatch, all you're doing is zeroing
out a structure that will be freed as soon as you come back.  When called
from mem_begin, when phys_page_set_level will call phys_map_node_alloc the
radix tree's array will be zeroed too.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c