mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
8c4ef202b9
commit
5105b1d8c2
7 changed files with 81 additions and 8 deletions
25
include/hw/misc/ivshmem.h
Normal file
25
include/hw/misc/ivshmem.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
/*
|
||||
* Inter-VM Shared Memory PCI device.
|
||||
*
|
||||
* Author:
|
||||
* Cam Macdonell <cam@cs.ualberta.ca>
|
||||
*
|
||||
* Based On: cirrus_vga.c
|
||||
* Copyright (c) 2004 Fabrice Bellard
|
||||
* Copyright (c) 2004 Makoto Suzuki (suzu)
|
||||
*
|
||||
* and rtl8139.c
|
||||
* Copyright (c) 2006 Igor Kovalenko
|
||||
*
|
||||
* This code is licensed under the GNU GPL v2.
|
||||
*
|
||||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
#ifndef IVSHMEM_H
|
||||
#define IVSHMEM_H
|
||||
|
||||
#define IVSHMEM_PROTOCOL_VERSION 0
|
||||
|
||||
#endif /* IVSHMEM_H */
|
Loading…
Add table
Add a link
Reference in a new issue