Re: [Qemu-devel] [[RFC v3 06/12] virtio: get avail bytes check for packed ring

2018-10-14 Thread Jason Wang
On 2018年10月11日 22:08, w...@redhat.com wrote: From: Wei Xu Same thought as 1.0 except a bit confused when trying to reuse 'shadow_avail_idx', so the interrelated new event_idx and the wrap counter for notifications has been introduced in previous patch. Signed-off-by: Wei Xu --- hw/virtio

[Qemu-devel] [[RFC v3 06/12] virtio: get avail bytes check for packed ring

2018-10-11 Thread wexu
From: Wei Xu Same thought as 1.0 except a bit confused when trying to reuse 'shadow_avail_idx', so the interrelated new event_idx and the wrap counter for notifications has been introduced in previous patch. Signed-off-by: Wei Xu --- hw/virtio/virtio.c | 176 +++