qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/2] virtio-net: fix cross-endianness support


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH 1/2] virtio-net: fix cross-endianness support
Date: Thu, 3 Mar 2011 19:50:03 +0000

On Thu, Mar 3, 2011 at 7:16 PM, Aurelien Jarno <address@hidden> wrote:
> The endianness handling in virtio-net is different than in virtio-blk.
> In virtio-blk we basically have to byteswap the data when the endianness
> of the guest is different than the one of the guest. If I am correct, in
> virtio-net it seems we have to byteswap the data solely depending on the
> guest endianness and independently on the host endianness. This is
> something quite weird that we don't have in cpu-all.h

That sounds odd.  Virtio is guest endian so the host must do
guest<->host endian conversion.  Which bits of code make you think
otherwise?

Stefan



reply via email to

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