[libvirt PATCH 11/16] domain_conf: graphics: extract listen formatting to separate function