Re: [Qemu-devel] [PATCH] libqos: fix bugs in qvirtqueue_kick()

2016-09-05 Thread Stefan Hajnoczi
On Fri, Aug 26, 2016 at 11:18:22AM +0800, zhangshuai wrote: > From: Zhang Shuai > > The idx and ring[] of vring_avail is 16-bit, but the writel > is 32-bit, the second writel will cover the ring[free_head] > with 0. So use writew to replace writel to fix the bug. > > Signed-off-by: zhangshuai >

Re: [Qemu-devel] [PATCH] libqos: fix bugs in qvirtqueue_kick()

2016-09-05 Thread Stefan Hajnoczi
On Fri, Aug 26, 2016 at 11:18:22AM +0800, zhangshuai wrote: > From: Zhang Shuai > > The idx and ring[] of vring_avail is 16-bit, but the writel > is 32-bit, the second writel will cover the ring[free_head] > with 0. So use writew to replace writel to fix the bug. > > Signed-off-by: zhangshuai >

[Qemu-devel] [PATCH] libqos: fix bugs in qvirtqueue_kick()

2016-08-25 Thread zhangshuai
From: Zhang Shuai The idx and ring[] of vring_avail is 16-bit, but the writel is 32-bit, the second writel will cover the ring[free_head] with 0. So use writew to replace writel to fix the bug. Signed-off-by: zhangshuai --- tests/libqos/virtio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del