qemu-e2k/migration
Eric Blake de63ab6124 migrate: Share common MigrationParameters struct
It is rather verbose, and slightly error-prone, to repeat
the same set of parameters for input (migrate-set-parameters)
as for output (query-migrate-parameters), where the only
difference is whether the members are optional.  We can just
document that the optional members will always be present
on output, and then share a common struct between both
commands.  The next patch can then reduce the amount of
code needed on input.

Also, we made a mistake in qemu 2.7 of returning an empty
string during 'query-migrate-parameters' when there is no
TLS, rather than omitting TLS details entirely.  Technically,
this change risks breaking any 2.7 client that is hard-coded
to expect the parameter's existence; on the other hand, clients
that are portable to 2.6 already must be prepared for those
members to not be present.

And this gets rid of yet one more place where the QMP output
visitor is silently converting a NULL string into "" (which
is a hack I ultimately want to kill off).

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2016-10-13 17:23:53 +02:00
..
Makefile.objs migration: add support for encrypting data with TLS 2016-05-26 11:32:13 +05:30
block.c migration/block: Convert saving to BlockBackend 2016-06-08 10:21:08 +02:00
exec.c migration: rename functions to starting migrations 2016-06-16 09:51:37 +05:30
fd.c migration: rename functions to starting migrations 2016-06-16 09:51:37 +05:30
migration.c migrate: Share common MigrationParameters struct 2016-10-13 17:23:53 +02:00
postcopy-ram.c migration: mmap error check fix 2016-08-11 16:59:38 +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: fix live migration failure with compression 2016-08-11 16:59:53 +05:30
qjson.c qjson: free str 2016-08-08 00:00:24 +04:00
ram.c migration: sync all address spaces 2016-09-27 11:57:29 +02:00
rdma.c migration/rdma: Don't flag an error when we've been told about one 2016-10-13 17:22:38 +02:00
savevm.c migration: Make failed migration load set file error 2016-10-13 17:22:38 +02:00
socket.c migration/socket: fix typo in file header 2016-08-11 17:03:51 +05:30
tls.c migration: rename functions to starting migrations 2016-06-16 09:51:37 +05:30
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
vmstate.c migration: Report values for comparisons 2016-10-13 17:22:38 +02:00
xbzrle.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00