[libvirt] [PATCH] qemu_process: move graphics validation into separate function