From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LHJGC-0005wN-2K for qemu-devel@nongnu.org; Mon, 29 Dec 2008 09:38:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LHJGA-0005w9-9z for qemu-devel@nongnu.org; Mon, 29 Dec 2008 09:38:22 -0500 Received: from [199.232.76.173] (port=55400 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHJGA-0005w6-50 for qemu-devel@nongnu.org; Mon, 29 Dec 2008 09:38:22 -0500 Received: from mx2.redhat.com ([66.187.237.31]:51871) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LHJG9-0003X2-MW for qemu-devel@nongnu.org; Mon, 29 Dec 2008 09:38:21 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mBTEcKA5002023 for ; Mon, 29 Dec 2008 09:38:20 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mBTEcJNm026245 for ; Mon, 29 Dec 2008 09:38:19 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mBTEcIAZ012062 for ; Mon, 29 Dec 2008 09:38:18 -0500 Received: from dhcp-1-237.tlv.redhat.com (localhost [127.0.0.1]) by dhcp-1-237.tlv.redhat.com (Postfix) with ESMTP id 45D2E18D43A for ; Mon, 29 Dec 2008 16:39:23 +0200 (IST) From: Gleb Natapov Date: Mon, 29 Dec 2008 16:39:23 +0200 Message-ID: <20081229143922.24671.86727.stgit@dhcp-1-237.tlv.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 0/2] Marry slirp and qemu character device. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Trap TCP connection to special IP/port inside slirp and redirect its traffic to a qemu character device. This is needed for communication between host and guest management agents. I am also planning to add an option to slirp networking to disable connection to outside world through it. This way tap will be used for general networking and slirp will be used for secure guest<->host communication. --- Gleb Natapov (2): Add vmchannel command line option. Redirect slirp traffic to/from qemu character device. slirp/libslirp.h | 5 ++- slirp/main.h | 1 + slirp/misc.c | 2 + slirp/sbuf.c | 2 + slirp/slirp.c | 57 +++++++++++++++++++++++++++++++ slirp/socket.c | 99 +++++++++++++++++++++++++++++++++++++++++++----------- slirp/socket.h | 2 + slirp/tcp_subr.c | 5 +++ vl.c | 75 ++++++++++++++++++++++++++++++++++++++++- 9 files changed, 223 insertions(+), 25 deletions(-) -- Gleb.