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