Re: [Qemu-devel] [PATCH v2] memory: use signed arithmetic

2011-08-05 Thread Anthony Liguori
On 08/03/2011 03:56 AM, Avi Kivity wrote: When trying to map an alias of a ram region, where the alias starts at address A and we map it into address B, and A> B, we had an arithmetic underflow. Because we use unsigned arithmetic, the underflow converted into a large number which failed addrran

Re: [Qemu-devel] [PATCH v2] memory: use signed arithmetic

2011-08-03 Thread Richard Henderson
On 08/03/2011 01:56 AM, Avi Kivity wrote: > When trying to map an alias of a ram region, where the alias starts at > address A and we map it into address B, and A > B, we had an arithmetic > underflow. Because we use unsigned arithmetic, the underflow converted > into a large number which failed a

[Qemu-devel] [PATCH v2] memory: use signed arithmetic

2011-08-03 Thread Avi Kivity
When trying to map an alias of a ram region, where the alias starts at address A and we map it into address B, and A > B, we had an arithmetic underflow. Because we use unsigned arithmetic, the underflow converted into a large number which failed addrrange_intersects() tests. The concrete example