mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-27 06:55:18 +00:00
Fix CPU hotplug command names
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
This commit is contained in:
parent
de8ecb12cb
commit
a980d123b5
@ -1181,7 +1181,7 @@ int qemuMonitorJSONSetCPU(qemuMonitorPtr mon,
|
|||||||
int cpu, int online)
|
int cpu, int online)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
virJSONValuePtr cmd = qemuMonitorJSONMakeCommand("balloon",
|
virJSONValuePtr cmd = qemuMonitorJSONMakeCommand("cpu_set",
|
||||||
"U:cpu", (unsigned long long)cpu,
|
"U:cpu", (unsigned long long)cpu,
|
||||||
"s:state", online ? "online" : "offline",
|
"s:state", online ? "online" : "offline",
|
||||||
NULL);
|
NULL);
|
||||||
|
@ -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
|
* or -1 on failure
|
||||||
*/
|
*/
|
||||||
int qemuMonitorTextSetCPU(qemuMonitorPtr mon, int cpu, int online)
|
int qemuMonitorTextSetCPU(qemuMonitorPtr mon, int cpu, int online)
|
||||||
@ -809,7 +809,7 @@ int qemuMonitorTextSetCPU(qemuMonitorPtr mon, int cpu, int online)
|
|||||||
char *reply = NULL;
|
char *reply = NULL;
|
||||||
int ret = -1;
|
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();
|
virReportOOMError();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user