]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libxl: Unconditionally call virSysinfoRead() on driver init
authorJim Fehlig <jfehlig@suse.com>
Wed, 4 Sep 2013 22:59:59 +0000 (16:59 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 5 Sep 2013 06:42:27 +0000 (00:42 -0600)
No need to check if privileged when reading hostsysinfo, since
that check was already done in libxlDriverShouldLoad().  The
libxl driver fails to load if not privileged.

src/libxl/libxl_driver.c

index 426167cb8c0119de22820e455816e50391367a6f..e2a6d441064577bbe4df42d04e1995a159830eea 100644 (file)
@@ -873,8 +873,7 @@ libxlStateInitialize(bool privileged,
     }
 
     /* read the host sysinfo */
-    if (privileged)
-        libxl_driver->hostsysinfo = virSysinfoRead();
+    libxl_driver->hostsysinfo = virSysinfoRead();
 
     libxl_driver->domainEventState = virDomainEventStateNew();
     if (!libxl_driver->domainEventState)