Received: from [140.186.70.92] (port=40961 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7kpd-0001ke-IO for qemu-devel@nongnu.org; Thu, 07 Apr 2011 04:44:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7kpb-0002Mi-9O for qemu-devel@nongnu.org; Thu, 07 Apr 2011 04:44:48 -0400 Received: from mail-ww0-f53.google.com ([74.125.82.53]:51688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7kpb-0002MU-56 for qemu-devel@nongnu.org; Thu, 07 Apr 2011 04:44:47 -0400 Received: by wwj40 with SMTP id 40so2594573wwj.10 for ; Thu, 07 Apr 2011 01:44:46 -0700 (PDT) Date: Thu, 7 Apr 2011 09:43:42 +0100 From: Stefan Hajnoczi Subject: Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading Message-ID: <20110407084342.GC21709@stefanha-thinkpad.localdomain> References: <312edea8efadfde52c4c6d267c924cf2.squirrel@humppa.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <312edea8efadfde52c4c6d267c924cf2.squirrel@humppa.name> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ralf@humppa.name Cc: qemu-devel@nongnu.org On Thu, Apr 07, 2011 at 12:19:01AM -0000, ralf@humppa.name wrote: > @@ -267,6 +267,9 @@ int load_multiboot(void *fw_cfg, > /* if a space comes after the module filename, treat everything > after that as parameters */ > target_phys_addr_t c = mb_add_cmdline(&mbs, initrd_filename); > + /* Kill spaces at the beginning of the filename */ > + while( *initrd_filename == ' ' ) > + initrd_filename++; 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 strip leading spaces. Stefan