[RFC PATCH v1 4/4] Register cpu hotplug netlink handler for lxc driver.

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

 



Signed-off-by: Tang Chen <tangchen@xxxxxxxxxxxxxx>
---
 src/lxc/lxc_driver.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index ff11c2c..45f6cc0 100644
--- a/src/lxc/lxc_driver.c
+++ b/src/lxc/lxc_driver.c
@@ -63,6 +63,7 @@
 #include "virtime.h"
 #include "virtypedparam.h"
 #include "viruri.h"
+#include "hotplug.h"
 
 #define VIR_FROM_THIS VIR_FROM_LXC
 
@@ -1453,6 +1454,13 @@ static int lxcStartup(int privileged)
          */
     }
 
+    /* Register cpu hotplug netlink handler for lxc driver */
+    if (virCpuHotplugRegisterCallback(lxc_driver->cgroup) < 0) {
+        VIR_ERROR(_("Unable to register cpu hotplug netlink handler"
+                    " for lxc driver"));
+        goto cleanup;
+    }
+
     /* Call function to load lxc driver configuration information */
     if (lxcLoadDriverConfig(lxc_driver) < 0)
         goto cleanup;
-- 
1.7.10.1

--
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]