Re: [Qemu-devel] [PATCH v4 10/26] qcow2: Helper function for refcount modification

2014-12-11 Thread Stefan Hajnoczi
On Wed, Dec 03, 2014 at 02:37:30PM +0100, Max Reitz wrote: > Since refcounts do not always have to be a uint16_t, all refcount blocks > and arrays in memory should not have a specific type (thus they become > pointers to void) and for accessing them, two helper functions are used > (a getter and a

Re: [Qemu-devel] [PATCH v4 10/26] qcow2: Helper function for refcount modification

2014-12-03 Thread Eric Blake
On 12/03/2014 06:37 AM, Max Reitz wrote: > Since refcounts do not always have to be a uint16_t, all refcount blocks > and arrays in memory should not have a specific type (thus they become > pointers to void) and for accessing them, two helper functions are used > (a getter and a setter). Those fun

[Qemu-devel] [PATCH v4 10/26] qcow2: Helper function for refcount modification

2014-12-03 Thread Max Reitz
Since refcounts do not always have to be a uint16_t, all refcount blocks and arrays in memory should not have a specific type (thus they become pointers to void) and for accessing them, two helper functions are used (a getter and a setter). Those functions are called indirectly through function poi