hw/display: fail early when multiple virgl devices are requested
commit02f9725f3df8a0e8f0a209d7436fad04e1ac190e
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 5 Jul 2021 10:42:18 +0000 (5 14:42 +0400)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 22 Jul 2021 13:46:47 +0000 (22 15:46 +0200)
treeb586b654e339ee2655d4713b52c4954a1bc585d7
parentdcc5fc2a3adb9ec4b196f82ebe4079bc88f3c91e
hw/display: fail early when multiple virgl devices are requested

This avoids failing to initialize virgl and crashing later on, and clear
the user expectations.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20210705104218.1161101-1-marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/virtio-gpu-gl.c