Re: [Qemu-devel] [PATCH v2] qcow2: Assert that refcount block offsets fit in the refcount table

2019-01-08 Thread Kevin Wolf
Am 14.11.2018 um 15:58 hat Alberto Garcia geschrieben: > Refcount table entries have a field to store the offset of the > refcount block. The rest of the bits of the entry are currently > reserved. > > The offset is always taken from the entry using REFT_OFFSET_MASK to > ensure that we only use

Re: [Qemu-devel] [PATCH v2] qcow2: Assert that refcount block offsets fit in the refcount table

2019-01-08 Thread Alberto Garcia
ping 2 On Wed 14 Nov 2018 03:58:57 PM CET, Alberto Garcia wrote: > Refcount table entries have a field to store the offset of the > refcount block. The rest of the bits of the entry are currently > reserved. > > The offset is always taken from the entry using REFT_OFFSET_MASK to > ensure that we

Re: [Qemu-devel] [PATCH v2] qcow2: Assert that refcount block offsets fit in the refcount table

2018-12-14 Thread Alberto Garcia
ping I suppose this one can go in now. On Wed 14 Nov 2018 03:58:57 PM CET, Alberto Garcia wrote: > Refcount table entries have a field to store the offset of the > refcount block. The rest of the bits of the entry are currently > reserved. > > The offset is always taken from the entry using

[Qemu-devel] [PATCH v2] qcow2: Assert that refcount block offsets fit in the refcount table

2018-11-14 Thread Alberto Garcia
Refcount table entries have a field to store the offset of the refcount block. The rest of the bits of the entry are currently reserved. The offset is always taken from the entry using REFT_OFFSET_MASK to ensure that we only use the bits that belong to that field. While that mask is used every