mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
660c97eef6
commit
f7a199b2b4
7 changed files with 54 additions and 41 deletions
|
@ -61,7 +61,7 @@ This server code is available in qemu.git/contrib/ivshmem-server.
|
|||
|
||||
The server must be started on the host before any guest.
|
||||
It creates a shared memory object then waits for clients to connect on a unix
|
||||
socket.
|
||||
socket. All the messages are little-endian int64_t integer.
|
||||
|
||||
For each client (QEMU process) that connects to the server:
|
||||
- the server sends a protocol version, if client does not support it, the client
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue