Fix the ticket expiration on target vm for a spice connection without introducing a race between the spice server switching the client to the new host itself and the target libvirt setting the new expiration date, by adding an option to client_migrate_info to not automatically switch the client on migration completion, instead waiting for an explicit client_migrate_switch (new monitor command) from libvirt.
The first patch is more of an RFC, it fixes the missing optional argument support for boolean arguments, instead of doing it as a simple copy paste done for all the other arguments it refactors that parsing before the main switch. Alon Levy (3): monitor: refactor whitespace and optional argument parsing spice-core: client_migrate_info: add optional auto_switch parameter (RHBZ 725009) monitor: add client_migrate_switch command (RHBZ 725009) hmp-commands.hx | 21 +++++++++-- monitor.c | 106 +++++++++++++++++++++++++++++-------------------------- qmp-commands.hx | 32 +++++++++++++++- ui/qemu-spice.h | 7 +++- ui/spice-core.c | 18 ++++++++- 5 files changed, 126 insertions(+), 58 deletions(-) -- 1.7.6