[libvirt] [PATCH v2 04/11] qemu: domain: Move video device validation into separate function