From owner-freebsd-virtualization@FreeBSD.ORG Fri Apr 9 18:46:04 2010 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED5D9106566C for ; Fri, 9 Apr 2010 18:46:03 +0000 (UTC) (envelope-from julianelischer@gmail.com) Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224]) by mx1.freebsd.org (Postfix) with ESMTP id 794F58FC1C for ; Fri, 9 Apr 2010 18:46:03 +0000 (UTC) Received: by ewy24 with SMTP id 24so418324ewy.33 for ; Fri, 09 Apr 2010 11:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=+btYk7mUkZsh0KSEknJ0VHzTjqfr3Grsfzqzx90hxXM=; b=oH3g43EO4SwLaLsZ+4PguC9xUZkcxnaOIQAHOSAG5ESIy4035xHmQJ9tb+k0M+4lV+ aRDZKIaPNd/x0IciipqPddABHHlzGhycqSap0CRnnFT4evK4Iiz2ugS0fpGM4ubFl5Q+ TkECH1dniPxsetTKbJqf3ZZqgIVJL5YU5KUjg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=MQzRWghhAKZdc3VTDc1HGH3Ewy2cEVhzFtWwj1WjCa2YjHcp76vX6dXjYMO9ACro5D YvH9cRCibmrhgHYo29u43oWvNFlBpyxHoPx3mmgyd36jqkLRSVbTnuLhfDjb6tU4ElbM Z3jOZFoBFfORCESImKieD2YV1nFRSzdNEMRj8= Received: by 10.213.109.147 with SMTP id j19mr245453ebp.25.1270838356272; Fri, 09 Apr 2010 11:39:16 -0700 (PDT) Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by mx.google.com with ESMTPS id 14sm936662ewy.14.2010.04.09.11.39.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Apr 2010 11:39:14 -0700 (PDT) Sender: Julian Elischer Message-ID: <4BBF7452.1080208@elischer.org> Date: Fri, 09 Apr 2010 11:39:14 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Luigi Rizzo , virtualization@freebsd.org References: <4BBCE3EE.506@halleforshunden.org> <20100409181428.GA55834@onelab2.iet.unipi.it> In-Reply-To: <20100409181428.GA55834@onelab2.iet.unipi.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: dummynet and vnet kernel panic X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 18:46:04 -0000 On 4/9/10 11:14 AM, Luigi Rizzo wrote: > On Wed, Apr 07, 2010 at 09:58:38PM +0200, Anders Hagman wrote: >> Hi >> >> When using dummynet inside a vnet node with a simple pipe the kernel >> panic on the first packet. >> >> I use 8.0-STABLE cvsuped at 7 Apr 15:28 >> The ipfw code with dummynet is largely changed and the patch in the url >> below will not work. >> http://www.freebsd.org/cgi/query-pr.cgi?pr=143621 >> >> Is there a fix in the near future? > > URL: http://svn.freebsd.org/changeset/base/206428 > > Log: > This commit enables partial operation of dummynet with kernels > compiled with "options VIMAGE". > As it is now, there is still a single instance of the pipes, > and it is only usable from vnet0 (the main instance). > Trying to use a pipe from a different vimage does not crash > the system as it did before, but the traffic coming out from > the pipe goes to the wrong place, and i still need to > figure out where. > > Support for per-vimage pipes is almost there (just a matter of > uncommenting the VNET_* definitions for dn_cfg, plus putting into > the structure the remaining static variables), however i need > first to figure out how init/uninit work, and also to understand > where packets are ending up on exit from a pipe. please read: http://p4db.freebsd.org/fileLogView.cgi?FSPC=//depot/projects/vimage/porting_to_vimage.txt and let me know if you have questions so I can fix the doc. > In summary: vimage support for dummynet is not complete yet, > but we are getting there. > > Modified: > head/sys/netinet/ipfw/ip_dn_io.c > head/sys/netinet/ipfw/ip_dn_private.h > head/sys/netinet/ipfw/ip_dummynet.c > > >> BR >> /Anders H >> _______________________________________________ >> freebsd-ipfw@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw >> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org"