Received: from [140.186.70.92] (port=48899 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q48MI-0003VM-6m for qemu-devel@nongnu.org; Mon, 28 Mar 2011 05:03:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q48MG-0007Cn-UY for qemu-devel@nongnu.org; Mon, 28 Mar 2011 05:03:33 -0400 Received: from cantor.suse.de ([195.135.220.2]:50439 helo=mx1.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q48MG-0007CC-M0 for qemu-devel@nongnu.org; Mon, 28 Mar 2011 05:03:32 -0400 Subject: Re: [Qemu-devel] [PATCH 27/27] Add SLOF-based partition firmware for pSeries machine, allowing more boot options Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <20110328011922.GH8428@yookeroo> Date: Mon, 28 Mar 2011 11:03:23 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <78393F68-09E8-405D-AAAA-1D42338E032E@suse.de> References: <1301023292-24977-1-git-send-email-david@gibson.dropbear.id.au> <1301023292-24977-28-git-send-email-david@gibson.dropbear.id.au> <4D8CDEFD.9060907@codemonkey.ws> <20110328011922.GH8428@yookeroo> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: paulus@samba.org, qemu-devel@nongnu.org, anton@samba.org On 28.03.2011, at 03:19, David Gibson wrote: > On Fri, Mar 25, 2011 at 01:29:17PM -0500, Anthony Liguori wrote: >> On 03/24/2011 10:21 PM, David Gibson wrote: >>> Currently, the emulated pSeries machine requires the use of the >>> -kernel parameter in order to explicitly load a guest kernel. This >>> means booting from the virtual disk, cdrom or network is not = possible. >>>=20 >>> This patch addresses this limitation by inserting a within-partition >>> firmware image (derived from the "SLOF" free Open Firmware project). >>> If -kernel is not specified, qemu will now load the SLOF image, = which >>> has access to the qemu boot device list through the device tree, and >>> can boot from any of the usual virtual devices. >>>=20 >>> In order to support the new firmware, an extension to the emulated >>> machine/hypervisor is necessary. Unlike Linux, which expects >>> multi-CPU entry to be handled kexec() style, the SLOF firmware = expects >>> only one CPU to be active at entry, and to use a hypervisor RTAS >>> method to enable the other CPUs one by one. >>>=20 >>> This patch also implements this 'start-cpu' method, so that SLOF can >>> start the secondary CPUs and marshal them into the kexec() holding >>> pattern ready for entry into the guest OS. Linux should, and in the >>> future might directly use the start-cpu method to enable initially >>> disabled CPUs, but for now it does require kexec() entry. >>>=20 >>> Signed-off-by: Benjamin Herrenschmidt >>> Signed-off-by: Paul Mackerras >>> Signed-off-by: David Gibson >>=20 >> We should pull in SLOF via a git submodule. That ensures we ship >> the source code along with the binary. >=20 > Um, ok. Do I need to do anything about this? I'm also not sure this is too important. Most of our firmware blobs come = from svn repos which can't be submoduled. And as long as we don't have a = consistent policy about it, we can just as well stick with the README = file. Alex