mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 06:21:52 -06:00
Migration via unix sockets.
Implement migration via unix sockets. While you can fake this using exec and netcat, this involves forking another process and is generally not very nice. By doing this directly in qemu, we can avoid the copy through the external nc command. This is useful for implementations (such as libvirt) that want to do "secure" migration; we pipe the data on the sending side into the unix socket, libvirt picks it up, encrypts it, and transports it, and then on the remote side libvirt decrypts it, dumps it to another unix socket, and feeds it into qemu. The implementation is straightforward and looks very similar to migration-exec.c and migration-tcp.c Signed-off-by: Chris Lalancette <clalance@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
1632dc6a8f
commit
4951f65bd3
4 changed files with 227 additions and 1 deletions
|
@ -73,6 +73,12 @@ MigrationState *tcp_start_outgoing_migration(const char *host_port,
|
|||
int64_t bandwidth_limit,
|
||||
int detach);
|
||||
|
||||
int unix_start_incoming_migration(const char *path);
|
||||
|
||||
MigrationState *unix_start_outgoing_migration(const char *path,
|
||||
int64_t bandwidth_limit,
|
||||
int detach);
|
||||
|
||||
void migrate_fd_monitor_suspend(FdMigrationState *s);
|
||||
|
||||
void migrate_fd_error(FdMigrationState *s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue