Signed-off-by: Tang Chen <tangchen@xxxxxxxxxxxxxx> --- src/qemu/qemu_driver.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 64c407d..509cdd7 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -92,6 +92,7 @@ #include "virnodesuspend.h" #include "virtime.h" #include "virtypedparam.h" +#include "hotplug.h" #define VIR_FROM_THIS VIR_FROM_QEMU @@ -710,6 +711,13 @@ qemudStartup(int privileged) { virStrerror(-rc, ebuf, sizeof(ebuf))); } + /* Register cpu hotplug netlink handler for qemu driver */ + if (virCpuHotplugRegisterCallback(qemu_driver->cgroup) < 0) { + VIR_ERROR(_("Unable to register cpu hotplug netlink handler" + " for qemu driver")); + goto error; + } + if (qemudLoadDriverConfig(qemu_driver, driverConf) < 0) { goto error; } -- 1.7.10.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list