Signed-off-by: Tang Chen <tangchen(a)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