]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix CPU hotplug command names
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 22 Apr 2010 15:39:10 +0000 (16:39 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 22 Apr 2010 16:15:48 +0000 (17:15 +0100)
Probably as a result of a merge error, the CPU hotplug command
names were completely wrong.

* src/qemu/qemu_monitor_json.c, src/qemu/qemu_monitor_text.c: Fix
  the CPU hotplug command names

src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_text.c

index cde9899b11527e62959c10149ca1c24d6c8a5948..96f246f5bb38e3ff68d047d9edd343077233e765 100644 (file)
@@ -1181,7 +1181,7 @@ int qemuMonitorJSONSetCPU(qemuMonitorPtr mon,
                           int cpu, int online)
 {
     int ret;
-    virJSONValuePtr cmd = qemuMonitorJSONMakeCommand("balloon",
+    virJSONValuePtr cmd = qemuMonitorJSONMakeCommand("cpu_set",
                                                      "U:cpu", (unsigned long long)cpu,
                                                      "s:state", online ? "online" : "offline",
                                                      NULL);
index 6ad07b1c7f71ec1ce860812b604c9b14f1d4268f..db3806db686f928bb25dff19986ed9d58b388ae1 100644 (file)
@@ -800,7 +800,7 @@ int qemuMonitorTextSetBalloon(qemuMonitorPtr mon,
 
 
 /*
- * Returns: 0 if balloon not supported, +1 if balloon adjust worked
+ * Returns: 0 if CPU hotplug not supported, +1 if CPU hotplug worked
  * or -1 on failure
  */
 int qemuMonitorTextSetCPU(qemuMonitorPtr mon, int cpu, int online)
@@ -809,7 +809,7 @@ int qemuMonitorTextSetCPU(qemuMonitorPtr mon, int cpu, int online)
     char *reply = NULL;
     int ret = -1;
 
-    if (virAsprintf(&cmd, "set_cpu %d %s", cpu, online ? "online" : "offline") < 0) {
+    if (virAsprintf(&cmd, "cpu_set %d %s", cpu, online ? "online" : "offline") < 0) {
         virReportOOMError();
         return -1;
     }