 34dfc5e407
			
		
	
	
		34dfc5e407
		
	
	
	
	
		
			
			Socket transport backend for 'migrate'/'migrate-incoming' QAPIs accept new wire protocol of MigrateAddress struct. It is achived by parsing 'uri' string and storing migration parameters required for socket connection into well defined SocketAddress struct. Suggested-by: Aravind Retnakaran <aravind.retnakaran@nutanix.com> Signed-off-by: Het Gala <het.gala@nutanix.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231023182053.8711-6-farosas@suse.de>
		
			
				
	
	
		
			33 lines
		
	
	
		
			963 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			963 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * QEMU live migration via socket
 | |
|  *
 | |
|  * Copyright Red Hat, Inc. 2009-2016
 | |
|  *
 | |
|  * Authors:
 | |
|  *  Chris Lalancette <clalance@redhat.com>
 | |
|  *  Daniel P. Berrange <berrange@redhat.com>
 | |
|  *
 | |
|  * This work is licensed under the terms of the GNU GPL, version 2.  See
 | |
|  * the COPYING file in the top-level directory.
 | |
|  *
 | |
|  * Contributions after 2012-01-13 are licensed under the terms of the
 | |
|  * GNU GPL, version 2 or (at your option) any later version.
 | |
|  */
 | |
| 
 | |
| #ifndef QEMU_MIGRATION_SOCKET_H
 | |
| #define QEMU_MIGRATION_SOCKET_H
 | |
| 
 | |
| #include "io/channel.h"
 | |
| #include "io/task.h"
 | |
| #include "qemu/sockets.h"
 | |
| 
 | |
| void socket_send_channel_create(QIOTaskFunc f, void *data);
 | |
| QIOChannel *socket_send_channel_create_sync(Error **errp);
 | |
| int socket_send_channel_destroy(QIOChannel *send);
 | |
| 
 | |
| void socket_start_incoming_migration(SocketAddress *saddr, Error **errp);
 | |
| 
 | |
| void socket_start_outgoing_migration(MigrationState *s,
 | |
|                                      SocketAddress *saddr, Error **errp);
 | |
| #endif
 |