Signed-off-by: Tang Chen <tangc...@cn.fujitsu.com>
---
 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@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to