libxl: Unconditionally call virSysinfoRead() on driver init

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.
This commit is contained in:
Jim Fehlig 2013-09-04 16:59:59 -06:00
parent 3fed82daa4
commit b78e8cb2ec

View 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)