[PATCH] libxl: Unconditionally call virSysinfoRead() on driver init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No need to check if priviledged when reading hostsysinfo, since
that check was already done in libxlDriverShouldLoad().  The
libxl driver fails to load if not priviledged.

Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxx>
---
 src/libxl/libxl_driver.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 426167c..e2a6d44 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -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)
-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]