qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] tests: fix qvirtqueue_kick


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v2] tests: fix qvirtqueue_kick
Date: Mon, 5 Sep 2016 14:07:56 -0400
User-agent: Mutt/1.7.0 (2016-08-17)

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 <address@hidden>
> ---
> 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

[Prev in Thread] Current Thread [Next in Thread]