From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: [PATCH 3/3 V2] kvm tools: Add cmdline options for loading multiple images Date: Wed, 04 May 2011 18:03:43 +0300 Message-ID: <1304521423.22299.8.camel@lappy> References: <1304516717-24512-1-git-send-email-levinsasha928@gmail.com> <1304516717-24512-4-git-send-email-levinsasha928@gmail.com> <4DC167E5.1020707@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: penberg@kernel.org, kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, prasadjoshi124@gmail.com To: David Ahern Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:50777 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754417Ab1EDPDw (ORCPT ); Wed, 4 May 2011 11:03:52 -0400 Received: by wwa36 with SMTP id 36so1326981wwa.1 for ; Wed, 04 May 2011 08:03:51 -0700 (PDT) In-Reply-To: <4DC167E5.1020707@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 2011-05-04 at 08:51 -0600, David Ahern wrote: > > On 05/04/11 07:45, Sasha Levin wrote: > > This is a simple cmdline addition to allow loading multiple images. > > perf's cmdline parser doesn't support having multiple args > > with the same name (i.e. --image --image ), so > > we have to choose either to extend the parser, or find a diiferent > > way to assign multiple images. > > > > Sample cmdline for loading 2 images: > > ./kvm run --image=image1.raw --readonly --image2=image2.raw --readonly2 > > syntax is getting a bit unwieldy. Why not use a scheme similar to qemu > and concatenate related arguments into one and handle multiple usages? > e.g., --image=image1.raw,ro --image=image2.raw,ro That'll probably how it'll end up being. Currently the cmdline parser doesn't support it and I didn't want to mix parser changes with virtio-blk patch. This patch should just allow testing of the multiple virtio-blk feature. -- Sasha.