ivshmem: add check on protocol version in QEMU
commit5105b1d8c2d1ad4a25b8806e86c0f012936b2eed
authorDavid Marchand <david.marchand@6wind.com>
Tue, 16 Jun 2015 15:43:34 +0000 (16 17:43 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:03:18 +0000 (24 18:03 +0200)
tree95dcbbebbf05b3b91be876b0355e76d9b94d7cc6
parent8c4ef202b901d25b88efc55398d4a76dfb2594de
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>
contrib/ivshmem-client/ivshmem-client.c
contrib/ivshmem-client/ivshmem-client.h
contrib/ivshmem-server/ivshmem-server.c
contrib/ivshmem-server/ivshmem-server.h
docs/specs/ivshmem_device_spec.txt
hw/misc/ivshmem.c
include/hw/misc/ivshmem.h [new file with mode: 0644]