Re: [Qemu-devel] [PATCH v2 1/1] virtio: fix vq->inuse recalc after migr

2016-12-20 Thread Stefan Hajnoczi
On Mon, Dec 19, 2016 at 04:44:44PM +0100, Halil Pasic wrote: > Correct recalculation of vq->inuse after migration for the corner case > where the avail_idx has already wrapped but used_idx not yet. > > Also change the type of the VirtQueue.inuse to unsigned int. This is > done to be consistent wit

[Qemu-devel] [PATCH v2 1/1] virtio: fix vq->inuse recalc after migr

2016-12-19 Thread Halil Pasic
Correct recalculation of vq->inuse after migration for the corner case where the avail_idx has already wrapped but used_idx not yet. Also change the type of the VirtQueue.inuse to unsigned int. This is done to be consistent with other members representing sizes (VRing.num), and because C99 guarant