On Sat, Aug 27, 2016 at 04:34:14PM -0400, Laurent Vivier wrote:
> vq->avail.idx and vq->avail->ring[] are a 16bit values,
> so read and write them with readw()/writew() instead of
> readl()/writel().
> 
> To read/write a 16bit value with a 32bit accessor works fine
> on little-endian CPU but not on big endian CPU.
> 
> Signed-off-by: Laurent Vivier <lviv...@redhat.com>
> ---
> v2: vq->avail->ring[] is also a 16bit value
> 
>  tests/libqos/virtio.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Thanks, applied to my block-next tree:
https://github.com/stefanha/qemu/commits/block-next

Stefan

Attachment: signature.asc
Description: PGP signature

Reply via email to