mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
3fed82daa4
commit
b78e8cb2ec
src/libxl
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue