]> git.proxmox.com Git - mirror_qemu.git/commit - exec.c
memory: allow phys_map tree paths to terminate early
authorAvi Kivity <avi@redhat.com>
Mon, 13 Feb 2012 18:45:32 +0000 (20:45 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 29 Feb 2012 11:44:45 +0000 (13:44 +0200)
commit07f07b31e57efa6e4f563802136ffa1694a2692b
tree08279523676b35f6ab07c76d0c5914fcdec8d45b
parentc19e8800d4a9c019299cc9232b4e628469a81d2d
memory: allow phys_map tree paths to terminate early

When storing large contiguous ranges in phys_map, all values tend to
be the same pointers to a single MemoryRegionSection.  Collapse them
by marking nodes with level > 0 as leaves.  This reduces tree memory
usage dramatically.

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