From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRHEJ-0008I7-BR for qemu-devel@nongnu.org; Fri, 31 Aug 2007 20:52:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRHEI-0008HM-5L for qemu-devel@nongnu.org; Fri, 31 Aug 2007 20:52:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRHEI-0008HD-0h for qemu-devel@nongnu.org; Fri, 31 Aug 2007 20:52:50 -0400 Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IRHEH-0000L4-KD for qemu-devel@nongnu.org; Fri, 31 Aug 2007 20:52:49 -0400 Date: Sat, 1 Sep 2007 01:52:12 +0100 From: "Daniel P. Berrange" Message-ID: <20070901005212.GA13901@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] Re: [kvm-devel] =?utf-8?b?UsOpZi4gOiBSZTogIFtQQVRDSF1bUkZDXSBB?= =?utf-8?q?llowing_QEMU__to_directly?= executeadirectory (and storing command line options in it) Reply-To: "Daniel P. Berrange" , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: laurent.vivier@bull.net Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org On Fri, Aug 31, 2007 at 10:13:11PM +0200, laurent.vivier@bull.net wrote: > I think passing only the directory name is better because it can be like a > "black box" : the user don't have to know how it is inside. And it is much > more simple to use "qemu my_pc" than "qemu -c my_pc/config". If you need this incredible 'simplicity', a 1 line shell script can easily provide it for you; $ cat myqemu #!/bin/sh exec qemu -c $1/config One of the great strengths of QEMU is its predictability - it may have a huge number of command line args, but this is exactly what gives QEMU such power & utility. It makes it very straightforward to build applications around QEMU, and ensure it behaviours in a 100% reliable & predictable manner. We should be wary of putting policy & heuristics into QEMU to turn it into a 'black box' because that will compromise the use cases at which it currently excels. A simple '-c' arg which takes a path to a config file is more than sufficient, without needing heuristics to look for magical named files in directories. Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|