mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user