ivshmem: allocate eventfds in resize_peers()
commit81e507f0bc584f417cb671e88da3f049cb4defb1
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 15 Sep 2015 15:23:07 +0000 (15 17:23 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:02:48 +0000 (24 18:02 +0200)
tree26ceca643aaa7b732d51dda3a587e8c7348e9372
parent1300b2733a297f9a59deb4eebbd437a5833f3f41
ivshmem: allocate eventfds in resize_peers()

It simplifies a bit the code to allocate the array when setting the
number of peers instead of lazily when receiving the first vector.

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