Re: [Qemu-devel] [PATCH RFC 4/4] range: Replace internal representation of Range

2016-06-20 Thread Markus Armbruster
"Michael S. Tsirkin" writes: > On Wed, Jun 15, 2016 at 10:41:50PM +0200, Markus Armbruster wrote: >> Range represents a range as follows. Member @start is the inclusive >> lower bound, member @end is the exclusive upper bound. Zero @end is >> special: if @start is also zero, the range is empty,

Re: [Qemu-devel] [PATCH RFC 4/4] range: Replace internal representation of Range

2016-06-18 Thread Michael S. Tsirkin
On Wed, Jun 15, 2016 at 10:41:50PM +0200, Markus Armbruster wrote: > Range represents a range as follows. Member @start is the inclusive > lower bound, member @end is the exclusive upper bound. Zero @end is > special: if @start is also zero, the range is empty, else @end is to > be interpreted as

Re: [Qemu-devel] [PATCH RFC 4/4] range: Replace internal representation of Range

2016-06-16 Thread Markus Armbruster
Eric Blake writes: > On 06/15/2016 02:41 PM, Markus Armbruster wrote: >> Range represents a range as follows. Member @start is the inclusive >> lower bound, member @end is the exclusive upper bound. Zero @end is >> special: if @start is also zero, the range is empty, else @end is to >> be inter

Re: [Qemu-devel] [PATCH RFC 4/4] range: Replace internal representation of Range

2016-06-15 Thread Eric Blake
On 06/15/2016 02:41 PM, Markus Armbruster wrote: > Range represents a range as follows. Member @start is the inclusive > lower bound, member @end is the exclusive upper bound. Zero @end is > special: if @start is also zero, the range is empty, else @end is to > be interpreted as 2^64. No other e

[Qemu-devel] [PATCH RFC 4/4] range: Replace internal representation of Range

2016-06-15 Thread Markus Armbruster
Range represents a range as follows. Member @start is the inclusive lower bound, member @end is the exclusive upper bound. Zero @end is special: if @start is also zero, the range is empty, else @end is to be interpreted as 2^64. No other empty ranges may occur. The range [0,2^64-1] cannot be re