mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu: remove obsolete qemuMonitorMigrateToCommand
The last use of qemuMonitorMigrateToCommand was removed years back in
commit 2e90c9daf9
Author: Daniel P. Berrange <berrange@redhat.com>
Date: Fri Nov 6 16:50:26 2015 +0000
qemu: assume support for all migration protocols except rdma
Prior to that commit, 'exec:' to used to replicate the 'unix:' protocol
by spawning 'nc'.
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
327ae930a4
commit
026ae4933c
@ -2730,37 +2730,6 @@ qemuMonitorMigrateToHost(qemuMonitorPtr mon,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuMonitorMigrateToCommand(qemuMonitorPtr mon,
|
||||
unsigned int flags,
|
||||
const char * const *argv)
|
||||
{
|
||||
char *argstr;
|
||||
char *dest = NULL;
|
||||
int ret = -1;
|
||||
VIR_DEBUG("argv=%p flags=0x%x", argv, flags);
|
||||
|
||||
QEMU_CHECK_MONITOR(mon);
|
||||
|
||||
argstr = virArgvToString(argv);
|
||||
if (!argstr)
|
||||
goto cleanup;
|
||||
|
||||
if (virAsprintf(&dest, "exec:%s", argstr) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (mon->json)
|
||||
ret = qemuMonitorJSONMigrate(mon, flags, dest);
|
||||
else
|
||||
ret = qemuMonitorTextMigrate(mon, flags, dest);
|
||||
|
||||
cleanup:
|
||||
VIR_FREE(argstr);
|
||||
VIR_FREE(dest);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuMonitorMigrateCancel(qemuMonitorPtr mon)
|
||||
{
|
||||
|
@ -784,10 +784,6 @@ int qemuMonitorMigrateToHost(qemuMonitorPtr mon,
|
||||
const char *hostname,
|
||||
int port);
|
||||
|
||||
int qemuMonitorMigrateToCommand(qemuMonitorPtr mon,
|
||||
unsigned int flags,
|
||||
const char * const *argv);
|
||||
|
||||
int qemuMonitorMigrateCancel(qemuMonitorPtr mon);
|
||||
|
||||
int qemuMonitorGetDumpGuestMemoryCapability(qemuMonitorPtr mon,
|
||||
|
Loading…
Reference in New Issue
Block a user