[libvirt] [PATCH v5 5/7] conf: Move virDomainMemtune formatting into a separate function