]> git.ipfire.org Git - thirdparty/qemu.git/commit
memory: fix rendering of a region obscured by another
authorAvi Kivity <avi@redhat.com>
Mon, 29 Oct 2012 16:22:36 +0000 (18:22 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 30 Nov 2012 21:54:07 +0000 (15:54 -0600)
commit0dfd8215c2d7023436e4bd25b68d6f00d83702e6
treedbede4e53ddadb4260f790fbbdb90d5981373bfb
parente16d81df85ec6e66364770cdb5e2737b0586961c
memory: fix rendering of a region obscured by another

The memory core drops regions that are hidden by another region (for example,
during BAR sizing), but it doesn't do so correctly if the lower address of the
existing range is below the lower address of the new range.

Example (qemu-system-mips -M malta -kernel vmlinux-2.6.32-5-4kc-malta
         -append "console=ttyS0"  -nographic -vga cirrus):

Existing range: 10000000-107fffff
New range:      100a0000-100bffff

Correct behaviour: drop new range
Incorrect behaviour: add new range

Fix by taking this case into account (previously we only considered
equal lower boundaries).

Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit d26a8caea3f160782841efb87b5e8bea606b512b)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
memory.c