]> git.proxmox.com Git - mirror_qemu.git/commit
ivshmem: use little-endian int64_t for the protocol
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 24 Sep 2015 10:55:01 +0000 (12:55 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 26 Oct 2015 09:19:53 +0000 (10:19 +0100)
commitf7a199b2b4486242271f769bb4bc2638c0413274
treef63f2b1bc536e1064cabbdf12f0c406f85560643
parent660c97eef6f8f416c5dc24d3798e29f9f9f698fb
ivshmem: use little-endian int64_t for the protocol

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 host where this change
should be compatible.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
contrib/ivshmem-client/ivshmem-client.c
contrib/ivshmem-client/ivshmem-client.h
contrib/ivshmem-client/main.c
contrib/ivshmem-server/ivshmem-server.c
contrib/ivshmem-server/ivshmem-server.h
docs/specs/ivshmem_device_spec.txt
hw/misc/ivshmem.c