ivshmem: remove max_peer field
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 19 Jun 2015 10:17:26 +0000 (12:17 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:02:48 +0000 (18:02 +0200)
commit95c8425cc3a316c998a7e306799ec6d29811bc32
tree7391ad2d5459b3001e1eb7c1b830901c1f48dd5c
parent95e7c8a0f690f9a0c8b70fd1a4de60bd944371b8
ivshmem: remove max_peer field

max_peer isn't really useful, it tracks the maximum received VM id, but
that quickly matches nb_peers, the size of the peers array. Since VM
come and go, there might be sparse peers so it doesn't help much in
general to have this value around.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
hw/misc/ivshmem.c