From edc5cb1a52b2847201acf78b0fba67ab3c2464d5 Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Mon, 17 Oct 2011 10:03:18 +0200 Subject: spice: turn client_migrate_info to async RHBZ 737921 Spice client is required to connect to the migration target before/as migration starts. Since after migration starts, the target qemu is blocked and cannot accept new spice client we trigger the connection to the target upon client_migrate_info command. client_migrate_info completion cb will be called after spice client has been connected to the target (or a timeout). See following patches and spice patches. Signed-off-by: Yonit Halperin Signed-off-by: Gerd Hoffmann --- hmp-commands.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hmp-commands.hx') diff --git a/hmp-commands.hx b/hmp-commands.hx index ab08d583df..e1812676e3 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -824,7 +824,8 @@ ETEXI .params = "protocol hostname port tls-port cert-subject", .help = "send migration info to spice/vnc client", .user_print = monitor_user_noop, - .mhandler.cmd_new = client_migrate_info, + .mhandler.cmd_async = client_migrate_info, + .flags = MONITOR_CMD_ASYNC, }, STEXI -- cgit v1.2.1