From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoWJF-0008D5-7c for qemu-devel@nongnu.org; Fri, 08 Apr 2016 09:18:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoWJB-0008Uh-0J for qemu-devel@nongnu.org; Fri, 08 Apr 2016 09:18:49 -0400 Received: from mail-qg0-x243.google.com ([2607:f8b0:400d:c04::243]:35093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoWJA-0008Ud-P7 for qemu-devel@nongnu.org; Fri, 08 Apr 2016 09:18:44 -0400 Received: by mail-qg0-x243.google.com with SMTP id b32so10040153qgf.2 for ; Fri, 08 Apr 2016 06:18:44 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160331090808.GD32185@stefanha-x1.localdomain> References: <1458292366-13723-1-git-send-email-b.reynal@virtualopensystems.com> <20160331090808.GD32185@stefanha-x1.localdomain> Date: Fri, 8 Apr 2016 15:18:44 +0200 Message-ID: From: Baptiste Reynal Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 1/1] backend: multi-client-socket List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu list , Jani.Kokkonen@huawei.com, VirtualOpenSystems Technical Team , Claudio.Fontana@huawei.com, Daniel Berrange I wasn't aware of this new framework when I started the development of this socket. For sure I'll have a deeper look and see what can be shared for the next version. On Thu, Mar 31, 2016 at 11:08 AM, Stefan Hajnoczi wrote: > On Fri, Mar 18, 2016 at 10:12:46AM +0100, Baptiste Reynal wrote: >> This patch introduces a new socket for QEMU, called multi-client-socket. This >> socket allows multiple QEMU instances to communicate by sharing messages >> and file descriptors. >> >> A socket can be instantiated with the following parameters: >> -object multi-socket-backend,id=,path=,listen= >> >> If listen is set, the socket will act as a listener and register new >> clients. >> >> This patch is a follow-up to "[RFC PATCH 0/8] Towards an Heterogeneous QEMU": >> https://lists.gnu.org/archive/html/qemu-devel/2015-10/msg00171.html >> >> This work has been sponsored by Huawei Technologies Duesseldorf GmbH. >> >> Signed-off-by: Baptiste Reynal >> --- >> backends/Makefile.objs | 2 + >> backends/multi-socket.c | 355 ++++++++++++++++++++++++++++++++++++++++++++ >> include/qemu/multi-socket.h | 124 ++++++++++++++++ >> 3 files changed, 481 insertions(+) >> create mode 100644 backends/multi-socket.c >> create mode 100644 include/qemu/multi-socket.h > > Is it possible to reuse QEMU's UNIX domain socket and fd passing code? > For example, take a look at io/channel-socket.c.