]> git.proxmox.com Git - qemu.git/commit - exec.c
memory: change memory registration to rebuild the memory map on each change
authorAvi Kivity <avi@redhat.com>
Thu, 9 Feb 2012 15:34:32 +0000 (17:34 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 29 Feb 2012 11:44:43 +0000 (13:44 +0200)
commit54688b1ec1f468c7272b837ff57298068aaedf5f
treefcab2c1f03137f97b0913c89046ff42c3c094123
parent50c1e1491e1981ecba14a477897681d8d0602500
memory: change memory registration to rebuild the memory map on each change

Instead of incrementally building the memory map, rebuild it every time.
This allows later simplification, since the code need not consider overlaying
a previous mapping.  It is also RCU friendly.

With large memory guests this can get expensive, since the operation is
O(mem size), but this will be optimized later.

As a side effect subpage and L2 leaks are fixed here.

Signed-off-by: Avi Kivity <avi@redhat.com>
exec.c