mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00: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:
parent
3fed82daa4
commit
b78e8cb2ec
@ -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
Block a user