]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory: merge adjacent segments of a single memory region
authorAvi Kivity <avi@redhat.com>
Tue, 26 Jul 2011 11:26:03 +0000 (14:26 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 29 Jul 2011 13:25:42 +0000 (08:25 -0500)
commit3d8e6bf97781a8415fd08ba1770269e1332c200c
tree2fa132f25c57a53e1034f9efef3e03f37cbe03f2
parent5a583347697413f964d886b074860cb888c0e306
memory: merge adjacent segments of a single memory region

Simple implementations of memory routers, for example the Cirrus VGA memory banks
or the 440FX PAM registers can generate adjacent memory regions which are contiguous.
Detect these and merge them; this saves kvm memory slots and shortens lookup times.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
memory.c