Re: [PATCH v2 3/7] vhost: refactor virtio_dev_merge_rx
From: Xie, Huawei <hidden>
Date: 2016-03-07 06:22:32
From: Xie, Huawei <hidden>
Date: 2016-03-07 06:22:32
On 2/18/2016 9:48 PM, Yuanhan Liu wrote:
+ uint16_t idx = vq->avail->ring[avail_idx & (vq->size - 1)]; + uint32_t vec_id = *vec_idx; + uint32_t len = *allocated;
There is bug not using volatile to retrieve the avail idx.