Re: [Qemu-devel] [PATCH v4 47/47] ivshmem: use little-endian int64_t for the protocol

2015-09-30 Thread Claudio Fontana
On 24.09.2015 13:37, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > The current ivshmem protocol uses 'long' for integers. But the > sizeof(long) depends on the host and the endianess is not defined, which > may cause portability troubles. > > Instead, switch to using little-en

[Qemu-devel] [PATCH v4 47/47] ivshmem: use little-endian int64_t for the protocol

2015-09-24 Thread marcandre . lureau
From: Marc-André Lureau The current ivshmem protocol uses 'long' for integers. But the sizeof(long) depends on the host and the endianess is not defined, which may cause portability troubles. Instead, switch to using little-endian int64_t. This breaks the protocol, except on x64 little-endian ho