提交 b78e8cb2 编写于 作者: J Jim Fehlig

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.
上级 3fed82da
...@@ -873,8 +873,7 @@ libxlStateInitialize(bool privileged, ...@@ -873,8 +873,7 @@ libxlStateInitialize(bool privileged,
} }
/* read the host sysinfo */ /* read the host sysinfo */
if (privileged) libxl_driver->hostsysinfo = virSysinfoRead();
libxl_driver->hostsysinfo = virSysinfoRead();
libxl_driver->domainEventState = virDomainEventStateNew(); libxl_driver->domainEventState = virDomainEventStateNew();
if (!libxl_driver->domainEventState) if (!libxl_driver->domainEventState)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册