From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuSaW-0003cU-Ll for qemu-devel@nongnu.org; Fri, 19 Aug 2011 13:10:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuSaV-0001Ap-Nb for qemu-devel@nongnu.org; Fri, 19 Aug 2011 13:10:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuSaV-0001Ag-Fh for qemu-devel@nongnu.org; Fri, 19 Aug 2011 13:10:31 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7JHATok027378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 19 Aug 2011 13:10:29 -0400 From: Alon Levy Date: Fri, 19 Aug 2011 10:08:45 -0700 Message-Id: <1313773728-6104-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] client_migrate_switch and auto_switch (RHBZ 725009) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kraxel@redhat.com 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