f7a199b2 | 24-Sep-2015 |
Marc-André Lureau <marcandre.lureau@redhat.com> |
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
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>
show more ...
|
45b00c44 | 24-Jun-2015 |
Marc-André Lureau <marcandre.lureau@redhat.com> |
contrib: remove unnecessary strdup()
getopt() optarg points to argv memory, no need to dup those values, fixes small leaks detected by clang-analyzer.
Signed-off-by: Marc-André Lureau <marcandre.lu
contrib: remove unnecessary strdup()
getopt() optarg points to argv memory, no need to dup those values, fixes small leaks detected by clang-analyzer.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
show more ...
|
5105b1d8 | 16-Jun-2015 |
David Marchand <david.marchand@6wind.com> |
ivshmem: add check on protocol version in QEMU
Send a protocol version as the first message from server, clients must close communication if they don't support this protocol version. Older QEMUs sh
ivshmem: add check on protocol version in QEMU
Send a protocol version as the first message from server, clients must close communication if they don't support this protocol version. Older QEMUs should be fine with this change in the protocol since they overrides their own vm_id on reception of an id associated to no eventfd.
Signed-off-by: David Marchand <david.marchand@6wind.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> [use fifo_update_and_get()] Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
show more ...
|
95204aa9 | 23-Jun-2015 |
Marc-André Lureau <marcandre.lureau@redhat.com> |
ivshmem-client: check the number of vectors
Check the number of vectors received from the server, to avoid out of bound array access.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
ivshmem-client: check the number of vectors
Check the number of vectors received from the server, to avoid out of bound array access.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
show more ...
|