From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6Fdr-0002Fl-0d for qemu-devel@nongnu.org; Thu, 23 Jan 2014 03:28:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6Fdh-0000AZ-VF for qemu-devel@nongnu.org; Thu, 23 Jan 2014 03:28:02 -0500 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:44085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6Fdg-00009z-JB for qemu-devel@nongnu.org; Thu, 23 Jan 2014 03:27:53 -0500 Received: from /spool/local by e28smtp05.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 23 Jan 2014 13:57:49 +0530 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id E7D041258051 for ; Thu, 23 Jan 2014 13:59:27 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s0N8RVA854853716 for ; Thu, 23 Jan 2014 13:57:31 +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 s0N8RliE020502 for ; Thu, 23 Jan 2014 13:57:47 +0530 From: Lei Li Date: Thu, 23 Jan 2014 16:27:38 +0800 Message-Id: <1390465663-17650-1-git-send-email-lilei@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/5 v2] Provide common methods for exchange FD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mohan@in.ibm.com, Lei Li , pbonzini@redhat.com This patch series tries to refactor the functions used for exchange of FD in current code, provide common methods for it. I just tested it through page flipping migration, and tap/ bridge-helper a bit, but have some environment problem on proxy fs driver. So it'd be appreciated if someone could help on verifying whether it has impact on it. :) Please let me know if there is anything needs to be improved. Thanks Changes since V1: -- Copy right and typo fixes pointed out by Eric. -- Don't cast 'char *' to 'int *' from Daniel. -- Get rid of local migration part. Lei Li (5): fd-exchange: provide common methods for exchange of fd qemu-bridge-helper: replace send_fd with qemu_send_with_fd net/tap: replace recv_fd with qemu_recv_with_fd virtfs-proxy-helper: replace send_fd with qemu_send_with_fd virtio-9p-proxy: replace v9fs_receivefd with qemu_recv_with_fd Makefile | 2 +- fsdev/virtfs-proxy-helper.c | 51 ++++------------------- hw/9pfs/virtio-9p-proxy.c | 60 +------------------------- hw/9pfs/virtio-9p-proxy.h | 5 -- include/qemu/fd-exchange.h | 25 +++++++++++ net/tap.c | 40 +---------------- qemu-bridge-helper.c | 31 +------------ util/Makefile.objs | 1 + util/qemu-fd-exchange.c | 97 +++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 144 insertions(+), 220 deletions(-) create mode 100644 include/qemu/fd-exchange.h create mode 100644 util/qemu-fd-exchange.c