mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 21:45:21 +00:00
qemu: Remove qemuMonitorTextSetCPU
It's not used any more. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d828b744ac
commit
2348c00f10
@ -32,36 +32,6 @@
|
|||||||
|
|
||||||
VIR_LOG_INIT("qemu.qemu_monitor_text");
|
VIR_LOG_INIT("qemu.qemu_monitor_text");
|
||||||
|
|
||||||
int qemuMonitorTextSetCPU(qemuMonitorPtr mon, int cpu, bool online)
|
|
||||||
{
|
|
||||||
char *cmd;
|
|
||||||
char *reply = NULL;
|
|
||||||
int ret = -1;
|
|
||||||
|
|
||||||
if (virAsprintf(&cmd, "cpu_set %d %s", cpu, online ? "online" : "offline") < 0)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
if (qemuMonitorHMPCommand(mon, cmd, &reply) < 0)
|
|
||||||
goto cleanup;
|
|
||||||
|
|
||||||
/* If the command failed qemu prints: 'unknown command'
|
|
||||||
* No message is printed on success it seems */
|
|
||||||
if (strstr(reply, "unknown command:")) {
|
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
|
||||||
_("cannot change vcpu count of this domain"));
|
|
||||||
goto cleanup;
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = 0;
|
|
||||||
|
|
||||||
cleanup:
|
|
||||||
VIR_FREE(reply);
|
|
||||||
VIR_FREE(cmd);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int qemuMonitorTextAddDrive(qemuMonitorPtr mon,
|
int qemuMonitorTextAddDrive(qemuMonitorPtr mon,
|
||||||
const char *drivestr)
|
const char *drivestr)
|
||||||
{
|
{
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
|
|
||||||
#include "qemu_monitor.h"
|
#include "qemu_monitor.h"
|
||||||
|
|
||||||
int qemuMonitorTextSetCPU(qemuMonitorPtr mon, int cpu, bool online);
|
|
||||||
|
|
||||||
int qemuMonitorTextAddDrive(qemuMonitorPtr mon,
|
int qemuMonitorTextAddDrive(qemuMonitorPtr mon,
|
||||||
const char *drivestr);
|
const char *drivestr);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user