Re: [Qemu-devel] [PATCH] qtest: virtio: zeroed last VRingDesc after allocate

2017-01-16 Thread Longpeng (Mike)
Hi Stefan, On 2017/1/16 22:13, Stefan Hajnoczi wrote: > On Sat, Jan 14, 2017 at 05:59:36PM +0800, Longpeng(Mike) wrote: .. >> diff --git a/tests/libqos/virtio.c b/tests/libqos/virtio.c >> index ec30cb9..b29c69e 100644 >> --- a/tests/libqos/virtio.c >> +++ b/tests/libqos/virtio.c >> @@ -171,12

Re: [Qemu-devel] [PATCH] qtest: virtio: zeroed last VRingDesc after allocate

2017-01-16 Thread Stefan Hajnoczi
On Sat, Jan 14, 2017 at 05:59:36PM +0800, Longpeng(Mike) wrote: > As qvring_indirect_desc_setup() wouldn't initialize last VRingDesc, > so it's filled with dirty data, this might cause virtio backend broken. > > For example, the last bit of this VRingDesc's flags might be 1, so > virtqueue_read_ne

[Qemu-devel] [PATCH] qtest: virtio: zeroed last VRingDesc after allocate

2017-01-14 Thread Longpeng(Mike)
As qvring_indirect_desc_setup() wouldn't initialize last VRingDesc, so it's filled with dirty data, this might cause virtio backend broken. For example, the last bit of this VRingDesc's flags might be 1, so virtqueue_read_next_desc() would report "Desc next is ***". This patch zeored the last VRi