[libvirt PATCH 07/16] domain_conf: graphics: extract Desktop formatting to separate function