From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJrUg-0003tU-9Q for qemu-devel@nongnu.org; Mon, 05 Jan 2009 10:35:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJrUd-0003sm-Pi for qemu-devel@nongnu.org; Mon, 05 Jan 2009 10:35:54 -0500 Received: from [199.232.76.173] (port=44228 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJrUd-0003sj-Mw for qemu-devel@nongnu.org; Mon, 05 Jan 2009 10:35:51 -0500 Received: from nf-out-0910.google.com ([64.233.182.184]:37744) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LJrUd-0006zd-AN for qemu-devel@nongnu.org; Mon, 05 Jan 2009 10:35:51 -0500 Received: by nf-out-0910.google.com with SMTP id b2so987044nfb.12 for ; Mon, 05 Jan 2009 07:35:47 -0800 (PST) Message-ID: <496228C9.3090701@codemonkey.ws> Date: Mon, 05 Jan 2009 09:35:37 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v2 0/5] Marry slirp and qemu character device. References: <20090105151459.3819.79836.stgit@dhcp-1-237.tlv.redhat.com> In-Reply-To: <20090105151459.3819.79836.stgit@dhcp-1-237.tlv.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Gleb Natapov wrote: > Trap TCP connection to special IP/port inside slirp and redirect its > traffic to a qemu character device. Add option to prevent connections > through slirp to outside world. Add migration support for "special" > sockets. This allow slirp to be used for secure communication between > host and guest management agents. > Do you have some simple client/server that you're using for testing? The patches look good to me, I'd like to test them first though before applying. I guess I could just use a combination of socat/md5sum but I'm wondering if you have anything more sophisticated already. Regards, Anthony Liguori > --- > > Gleb Natapov (5): > Add support for vmchannel socket migration. > Add "restrict" and "ip" option to "user" net option > Add slirp_restrict option. > Add vmchannel command line option. > Redirect slirp traffic to/from qemu character device. > > > net.c | 14 ++ > slirp/bootp.c | 22 ++-- > slirp/ip_input.c | 21 ++++ > slirp/libslirp.h | 7 + > slirp/main.h | 3 + > slirp/misc.c | 2 > slirp/sbuf.c | 2 > slirp/slirp.c | 300 ++++++++++++++++++++++++++++++++++++++++++++++++++++- > slirp/socket.c | 99 ++++++++++++++--- > slirp/socket.h | 2 > slirp/tcp_input.c | 11 ++ > slirp/tcp_subr.c | 5 + > slirp/udp.c | 3 + > vl.c | 75 +++++++++++++ > 14 files changed, 524 insertions(+), 42 deletions(-) > >