[libvirt] [PATCH v3 1/4] qemu: default video device type selection algoritm moved into its own function