qemu-patch-raspberry4/migration
Daniel P. Berrange 69ef1f36b0 migration: define 'tls-creds' and 'tls-hostname' migration parameters
Define two new migration parameters to be used with TLS encryption.
The 'tls-creds' parameter provides the ID of an instance of the
'tls-creds' object type, or rather a subclass such as 'tls-creds-x509'.
Providing these credentials will enable use of TLS on the migration
data stream.

If using x509 certificates, together with a migration URI that does
not include a hostname, the 'tls-hostname' parameter provides the
hostname to use when verifying the server's x509 certificate. This
allows TLS to be used in combination with fd: and exec: protocols
where a TCP connection is established by a 3rd party outside of
QEMU.

NB, this requires changing the migrate_set_parameter method in the
HMP to accept a 's' (string) value instead of 'i' (integer). This
is backwards compatible, because the parsing of strings allows the
quotes to be optional, thus any integer is also a valid string.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1461751518-12128-26-git-send-email-berrange@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
2016-05-26 11:32:10 +05:30
..
block.c block: Avoid bs->blk in bdrv_next() 2016-05-19 16:45:31 +02:00
exec.c migration: convert exec socket protocol to use QIOChannel 2016-05-26 11:31:47 +05:30
fd.c migration: convert fd socket protocol to use QIOChannel 2016-05-26 11:31:45 +05:30
Makefile.objs migration: delete QEMUFile stdio implementation 2016-05-26 11:32:03 +05:30
migration.c migration: define 'tls-creds' and 'tls-hostname' migration parameters 2016-05-26 11:32:10 +05:30
postcopy-ram.c migration/postcopy-ram: Guard use of sys/eventfd.h with CONFIG_EVENTFD 2016-02-26 15:05:25 +05:30
qemu-file-channel.c migration: introduce a new QEMUFile impl based on QIOChannel 2016-05-26 11:31:24 +05:30
qemu-file.c migration: move definition of struct QEMUFile back into qemu-file.c 2016-05-26 11:32:05 +05:30
qjson.c migration/qjson: Drop gratuitous use of QOM 2016-05-23 14:16:12 +05:30
ram.c migration: don't use an array for storing migrate parameters 2016-05-26 11:32:07 +05:30
rdma.c migration: convert RDMA to use QIOChannel interface 2016-05-26 11:31:50 +05:30
savevm.c migration: convert savevm to use QIOChannel for writing to files 2016-05-26 11:31:53 +05:30
socket.c migration: convert tcp socket protocol to use QIOChannel 2016-05-26 11:31:42 +05:30
vmstate.c migration: Move qjson.[ch] to migration/ 2016-05-23 14:16:09 +05:30
xbzrle.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00