[PATCH 7/9] qemu: Move checks for number of listening sockets of graphics to validation code