qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/2] memory: allow zero size for adjust_endianne


From: Michael S. Tsirkin
Subject: Re: [Qemu-devel] [PATCH 1/2] memory: allow zero size for adjust_endianness()
Date: Thu, 27 Aug 2015 15:25:17 +0300

On Thu, Aug 27, 2015 at 01:20:52PM +0100, Peter Maydell wrote:
> On 27 August 2015 at 13:17, Michael S. Tsirkin <address@hidden> wrote:
> > Basically the point is that ABI is extended to make
> > ioeventfd with len = 0 mean "any length".
> > 0 is thus not meaningless anymore.
> 
> But how can you do adjustment for incorrect endianness
> if you don't know the size of the data that you're
> trying to work with? That's why this switch insists
> that the size is 1, 2, 4 or 8.
> 
> -- PMM

For kvm at least, "any length" implies "any data".
So data is eventually discarded, we don't really need
to adjust it for endian-ness.

-- 
MST



reply via email to

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