aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-09-22 10:30:01 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-09-22 10:30:01 -0500
commited95ee87a5b8334d91844a4c5af578769a9a0170 (patch)
treed44de0b744eec6ae05a0271cb1d0945ad9ea2716
parentbea09f657f95219cc76f90b7eeaec4de77ab664e (diff)
parent860329b2513cf754c5f7d5400f7bcf5dd1a44489 (diff)
Merge remote-tracking branch 'qemu-kvm-tmp/memory/core' into staging
-rw-r--r--memory.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/memory.c b/memory.c
index 101b67c935..ba74435a9b 100644
--- a/memory.c
+++ b/memory.c
@@ -1190,16 +1190,19 @@ static void memory_region_add_subregion_common(MemoryRegion *mr,
if (subregion->may_overlap || other->may_overlap) {
continue;
}
- if (offset >= other->offset + other->size
- || offset + subregion->size <= other->offset) {
+ if (offset >= other->addr + other->size
+ || offset + subregion->size <= other->addr) {
continue;
}
#if 0
- printf("warning: subregion collision %llx/%llx vs %llx/%llx\n",
+ printf("warning: subregion collision %llx/%llx (%s) "
+ "vs %llx/%llx (%s)\n",
(unsigned long long)offset,
(unsigned long long)subregion->size,
- (unsigned long long)other->offset,
- (unsigned long long)other->size);
+ subregion->name,
+ (unsigned long long)other->addr,
+ (unsigned long long)other->size,
+ other->name);
#endif
}
QTAILQ_FOREACH(other, &mr->subregions, subregions_link) {