Received: from [140.186.70.92] (port=52439 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7mVg-0005Dq-J8 for qemu-devel@nongnu.org; Thu, 07 Apr 2011 06:32:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7mIX-0008SE-ET for qemu-devel@nongnu.org; Thu, 07 Apr 2011 06:18:46 -0400 Received: from humppa.name ([83.246.72.37]:3513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7mIX-0008Rd-96 for qemu-devel@nongnu.org; Thu, 07 Apr 2011 06:18:45 -0400 Message-ID: <0300fbb64b3760d3661dddac7cdcc4fc.squirrel@www.humppa.name> In-Reply-To: <20110407084342.GC21709@stefanha-thinkpad.localdomain> References: <312edea8efadfde52c4c6d267c924cf2.squirrel@humppa.name> <20110407084342.GC21709@stefanha-thinkpad.localdomain> Date: Thu, 7 Apr 2011 10:18:38 -0000 (UTC) Subject: Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading From: "Ralf Ramsauer" MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Reply-To: ralf@humppa.name List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org Leading spaces mustn't be stripped! The commandline could look like: qemu -kernel kern -initrd "1.mod arg=3Dfoo arg2=3Dbar, 2.mod arg=3Dasdf" The problem is, that the string "1.mod arg=3Dfoo arg2=3Dbar, 2.mod arg=3Dasdf" is divided at the ','. So we have two string "1.mod arg=3Dfoo arg2=3Dbar" and " 2.mod arg=3Dasdf" ^ This space causes the error "Failed to get image size" So just the spaces at the beginning of the file have to be stripped. Spaces at the end could be important for the commandline. E.g. -initrd "1.mod arg=3Dargwithmanyspaces , 2.mod" -- Ralf > If we want to do this, shouldn't it be done before adding to the > multiboot command-line? Otherwise the multiboot image also has to stri= p > leading spaces. > > Stefan >