[libvirt PATCH 05/16] domain_conf: graphics: extract SDL formatting to separate function