]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libxl: Don't autostart domains on driver reload
authorJim Fehlig <jfehlig@suse.com>
Tue, 14 Sep 2021 17:11:11 +0000 (11:11 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 14 Sep 2021 17:37:35 +0000 (11:37 -0600)
When libxlAutostartDomain was introduced with commit fb92307f0d, one hunk
mistakenly added a call site in libxlStateReload. Domains should not be
autostarted when reloading the driver, so remove the offending hunk.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libxl/libxl_driver.c

index c5dbcaafa5e919ff07607d03a4074a18729195a4..7ea157f9c4fadf534dd572040630f335cab37f18 100644 (file)
@@ -825,10 +825,6 @@ libxlStateReload(void)
                                    libxl_driver->xmlopt,
                                    NULL, libxl_driver);
 
-    virDomainObjListForEach(libxl_driver->domains, false,
-                            libxlAutostartDomain,
-                            libxl_driver);
-
     virObjectUnref(cfg);
     return 0;
 }