Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K75Sx-000151-Lu for qemu-devel@nongnu.org; Fri, 13 Jun 2008 05:21:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K75Sw-00013t-3C for qemu-devel@nongnu.org; Fri, 13 Jun 2008 05:21:02 -0400 Received: from [199.232.76.173] (port=56145 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K75Sv-00013g-9K for qemu-devel@nongnu.org; Fri, 13 Jun 2008 05:21:01 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:39127) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K75Ss-0000Ed-Oe for qemu-devel@nongnu.org; Fri, 13 Jun 2008 05:20:59 -0400 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m5D9KtDY010013 for ; Fri, 13 Jun 2008 02:20:56 -0700 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1K75Sj-0003Fv-Gm for qemu-devel@nongnu.org; Fri, 13 Jun 2008 10:20:49 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18514.15345.497693.332066@mariner.uk.xensource.com> Date: Fri, 13 Jun 2008 10:20:49 +0100 Subject: Re: [Qemu-devel] [PATCH] New scriptarg=... -net parameter allows passing of an argument In-Reply-To: <48519A19.8080803@codemonkey.ws> References: <18513.23567.23400.891876@mariner.uk.xensource.com> <48516D47.6080005@codemonkey.ws> <4851948E.4070300@qumranet.com> <48519A19.8080803@codemonkey.ws> From: Ian Jackson 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 Anthony Liguori writes ("Re: [Qemu-devel] [PATCH] New scriptarg=... -net parameter allows passing of an argument"): > Avi Kivity wrote: > > Environment variables are global, whereas scriptarg is per-interface. > > Consider the case where scriptarg denotes the bridge name we want the > > interface to attach to. ... > It's nicer IMHO because it extends well to passing more data to the > script (like whatever the -name parameter is). I agree that all of the parameters to -net ought to be passed as environment variables. > I was originally going to suggest arbitrary ,key=value be passed by > default as environmental variables like QEMU_key=value but I think that > would get too complicated given the current code. I think there's no particular reason why the current tap structure couldn't be augmented by a linked list. I'd be happy to make a patch to do that. Ian.