Received: from eggs.gnu.org ([208.118.235.92]:43479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVl8U-0005hS-RY for qemu-devel@nongnu.org; Fri, 26 Apr 2013 12:04:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVl8O-0007Ov-B9 for qemu-devel@nongnu.org; Fri, 26 Apr 2013 12:04:34 -0400 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:42675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVl8O-0007OV-2D for qemu-devel@nongnu.org; Fri, 26 Apr 2013 12:04:28 -0400 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 26 Apr 2013 16:59:09 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id C09D21B0805D for ; Fri, 26 Apr 2013 17:04:23 +0100 (BST) Received: from d06av10.portsmouth.uk.ibm.com (d06av10.portsmouth.uk.ibm.com [9.149.37.251]) by b06cxnps4075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r3QG4DLo52756666 for ; Fri, 26 Apr 2013 16:04:13 GMT Received: from d06av10.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av10.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r3QG4Nhd023485 for ; Fri, 26 Apr 2013 10:04:23 -0600 Date: Fri, 26 Apr 2013 18:04:21 +0200 From: Dominik Dingel Message-ID: <20130426180421.7559e0ae@BR9TG4T3.de.ibm.com> In-Reply-To: <3D4AF3D5-CFA4-4352-8203-2739B17185A5@suse.de> References: <1366978377-16823-1-git-send-email-dingel@linux.vnet.ibm.com> <1366978377-16823-4-git-send-email-dingel@linux.vnet.ibm.com> <5AAF60BF-6909-45E4-8D61-B9B8B21CA95F@suse.de> <517AA059.4000400@de.ibm.com> <3D4AF3D5-CFA4-4352-8203-2739B17185A5@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 03/10] S390: Check Bootdevice Type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Christian Paro , Christian Borntraeger , qemu-devel@nongnu.org On Fri, 26 Apr 2013 17:48:37 +0200 Alexander Graf wrote: > > On 26.04.2013, at 17:42, Christian Borntraeger wrote: > > > On 26/04/13 17:22, Alexander Graf wrote: > >> > >> On 26.04.2013, at 14:12, Dominik Dingel wrote: > >> > >>> Check for a kernel IPL entry and load kernel image if one was > >>> specified. > >>> If no kernel image was supplied and the first boot device > >>> is not a virtio-ccw-blk device, print error message and exit. > >>> > >>> In case it is a virtio-ccw-blk device store the dev_no in reg[7] > >> > >> I thought we want a boot order, not a singular device to boot off of? > >> > >> Alex > > > > First of all we want to be able to choose a boot device as a first step. > > With this patch the user is able to use libvirt and friends to choose the > > disk to boot from. > > > > The nice approach with this bios/ipl device is that we can update both > > in lock-step so this reg7 interface is not an ABI. > > > > So in a future version we actually could: > > a: implement diag 308 subcode 5/6, which would enable /sys/devices/firmware/[ipl|reipl] > > just like on z/VM or LPAR (this allows to reboot from a different device). > > b: implement a list. > > > > b looks nice, but I actually prefer a for two reasons: > > 1. be closer to the real hw > > 2. predictability > > but we can certainly discuss this. > > > > So I suggest to go with this patch and implement later on what we > > agree upon? > > I don't see how having "first device we find" is any better than a rushed interface we need to agree on right before 1.5 hard freeze. Let's just release 1.5 with the very simple one and then go for something awesome in the next version. > > > Alex Okay, I like more the evolution over the revolution kind of approach. So this patchset does include a few improvements over the :"boot the first blk device we see" system. We can specify explicitly with the boot index the device to boot and with loadparm even the boot entry. And I also see it like Christian that this is not really an interface, as it should be never exposed to the outside. We only enable the outside to use boot index, which is clearly stated in docs/bootindex.txt and in a later addition we will enable fallbacks. Dominik Dominik