From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6P4U-000782-Fw for qemu-devel@nongnu.org; Wed, 21 Sep 2011 11:50:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6P4T-0008O8-AH for qemu-devel@nongnu.org; Wed, 21 Sep 2011 11:50:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6P4T-0008Nx-34 for qemu-devel@nongnu.org; Wed, 21 Sep 2011 11:50:49 -0400 From: Yonit Halperin Date: Wed, 21 Sep 2011 18:50:42 +0300 Message-Id: <1316620244-8196-1-git-send-email-yhalperi@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] spice migration interface (RHBZ 737921) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, spice-devel@freedesktop.org Cc: Yonit Halperin , alevy@redhat.com, kraxel@redhat.com Spice client is required to connect to the migration target before/as migration starts. Previously, it connected upon migration completion, however, the ticket was set in the beginning, thus when migration time was > ticket_expiration_time, spice failed to connect to the target. Since the migration target is blocked after migration starts, we execute spice-client connection to the target before migration, upon client_migrate_info. We wait till the client is connected to the target, or till a timeout occurs. In order to not block the iothread, this patch turns client_migrate_info to asynchronous. In addition, we changed the spice api: (1) client_migrate_info need to call spice_server_migrate_connect (2) spice_server_migrate_start/end need to be called upon migration start/end ** spice_server_start and the migrate_end_complete callback, were added for future use, in case we implement a real seamless spice migration Spice server patches will be emailed next. They are for the 0.8 spice branch, but will be ported to upstream soon. Yonit Halperin (2): spice: turn client_migrate_info to async spice: support the new migration interface (spice 0.8.3) hmp-commands.hx | 3 +- monitor.c | 6 +++- qmp-commands.hx | 3 +- ui/qemu-spice.h | 13 +++++++++- ui/spice-core.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 5 files changed, 81 insertions(+), 10 deletions(-) -- 1.7.4.4