[libvirt PATCH 4/6] tools: use virDomainRestoreParams only when necessary