This restart might be okay, but consider leaving it up to the caller or making it optional.  maybe have a <code>restart_libvirtd=True</code> parameter or something.