From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOq9P-000375-5G for qemu-devel@nongnu.org; Wed, 25 Sep 2013 10:33:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOq9H-0006I9-7J for qemu-devel@nongnu.org; Wed, 25 Sep 2013 10:33:11 -0400 Received: from e28smtp01.in.ibm.com ([122.248.162.1]:38681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOq9G-0006Gz-Ht for qemu-devel@nongnu.org; Wed, 25 Sep 2013 10:33:03 -0400 Received: from /spool/local by e28smtp01.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 25 Sep 2013 20:02:56 +0530 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id 977C2E0053 for ; Wed, 25 Sep 2013 20:03:58 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay04.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r8PEWpvn33816674 for ; Wed, 25 Sep 2013 20:02:51 +0530 Received: from d28av02.in.ibm.com (localhost [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r8PEWrAq003162 for ; Wed, 25 Sep 2013 20:02:53 +0530 From: Lei Li Date: Wed, 25 Sep 2013 22:32:40 +0800 Message-Id: <1380119568-5530-1-git-send-email-lilei@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/8 RFC] migration: Introduce side channel for RAM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aarcange@redhat.com, Lei Li , quintela@redhat.com, mdroth@linux.vnet.ibm.com, mrhines@linux.vnet.ibm.com, anthony@codemonkey.ws, lagarcia@br.ibm.com, pbonzini@redhat.com, rcj@linux.vnet.ibm.com This RFC patch series tries to introduce a mechanism using side channel pipe for RAM via SCM_RIGHTS with unix domain socket protocol migration. This side channel will be used for the page flipping by vmsplice, which will be the internal mechanism for localhost migration that we are trying to add. The previous patch series for localhost migration as link, http://lists.nongnu.org/archive/html/qemu-devel/2013-08/msg02916.html After this series, will adjust the process of current migration for the localhost migration and involve the vmsplice based on the previous patch set as link above. Please let me know if it is the proper way for it or there is anything need to be improved. Your suggestions and comments are very welcome, and thanks for Paolo for his review and useful suggestions. Lei Li (8): migration-local: add pipe protocol for QEMUFileOps migration-local: add qemu_fopen_pipe() migration-local: add send_pipefd() migration-local: add recv_pipefd() QAPI: introduce magration capability unix_page_flipping migration: add migrate_unix_page_flipping() migration-unix: side channel support on unix outgoing migration-unix: side channel support on unix incoming Makefile.target | 1 + include/migration/migration.h | 3 + include/migration/qemu-file.h | 4 + migration-local.c | 247 +++++++++++++++++++++++++++++++++++++++++ migration-unix.c | 48 +++++++- migration.c | 9 ++ qapi-schema.json | 8 +- 7 files changed, 315 insertions(+), 5 deletions(-) create mode 100644 migration-local.c