ivshmem: limit maximum number of peers to G_MAXUINT16
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 15 Sep 2015 14:55:10 +0000 (16:55 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:02:48 +0000 (18:02 +0200)
commit61ea2d8648d32b8e84da62f142dc08fa9ee5b7b9
treeb8524c038de9c30f1d2a7737f1a228576eb8f55f
parent03977ad552874f6598a8f0ef3089e6846ba01a2b
ivshmem: limit maximum number of peers to G_MAXUINT16

Limit the maximum number of peers to MAXUINT16. This is more realistic
and better matches the limit of the doorbell register.

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