Received: from eggs.gnu.org ([208.118.235.92]:51816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVn4I-0004rl-R8 for qemu-devel@nongnu.org; Fri, 26 Apr 2013 14:08:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVn4G-0000Qj-7x for qemu-devel@nongnu.org; Fri, 26 Apr 2013 14:08:22 -0400 Received: from e06smtp18.uk.ibm.com ([195.75.94.114]:56153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVn4F-0000QZ-Ue for qemu-devel@nongnu.org; Fri, 26 Apr 2013 14:08:20 -0400 Received: from /spool/local by e06smtp18.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 26 Apr 2013 19:04:30 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 42F7F1B08061 for ; Fri, 26 Apr 2013 19:08:16 +0100 (BST) Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r3QI86dt57999482 for ; Fri, 26 Apr 2013 18:08:06 GMT Received: from d06av12.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r3QI8Fvf019843 for ; Fri, 26 Apr 2013 12:08:15 -0600 Date: Fri, 26 Apr 2013 20:08:12 +0200 From: Dominik Dingel Message-ID: <20130426200812.1bbcc190@BR9TG4T3.de.ibm.com> In-Reply-To: <496A9595-9B28-48C6-B08D-64361B3C20C2@suse.de> References: <1366978377-16823-1-git-send-email-dingel@linux.vnet.ibm.com> <1366978377-16823-10-git-send-email-dingel@linux.vnet.ibm.com> <496A9595-9B28-48C6-B08D-64361B3C20C2@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 09/10] S390: Pass per-device loadparm values for CCW blk and net devs. 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 18:52:48 +0200 Alexander Graf wrote: > > On 26.04.2013, at 14:12, Dominik Dingel wrote: > > > From: Christian Paro > > > > Provide a loadparm property which can be used to pass IPL load > > parameters on a per-device basis for VirtioCcwDevice instances > > representing block and network devices. > > > > Signed-off-by: Christian Paro > > > > diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c > > index 56539d3..23d042f 100644 > > --- a/hw/s390x/virtio-ccw.c > > +++ b/hw/s390x/virtio-ccw.c > > @@ -791,6 +791,7 @@ static const VirtIOBindings virtio_ccw_bindings = { > > > > static Property virtio_ccw_net_properties[] = { > > DEFINE_PROP_STRING("devno", VirtioCcwDevice, bus_id), > > + DEFINE_PROP_UINT32("loadparm", VirtioCcwDevice, loadparm, 0), > > We don't support netboot yet, right? Also is "loadparm" an architected name? Wouldn't "bootmap_id" or something that actually tells the user what's going on fit better? > > > Alex Christian had the idea to name it subindex, but I don't know, to be honest, I like the general open solution more, especially for the commandline interface. What if we later on want to change the behaviour, loadparm, or better biosparameter is so general... where bootmap_id is narrowed down. Dominik > > DEFINE_VIRTIO_NET_FEATURES(VirtioCcwDevice, host_features[0]), > > DEFINE_VIRTIO_NET_PROPERTIES(VirtIONetCcw, vdev.net_conf), > > DEFINE_NIC_PROPERTIES(VirtIONetCcw, vdev.nic_conf), > > @@ -818,6 +819,7 @@ static const TypeInfo virtio_ccw_net = { > > > > static Property virtio_ccw_blk_properties[] = { > > DEFINE_PROP_STRING("devno", VirtioCcwDevice, bus_id), > > + DEFINE_PROP_UINT32("loadparm", VirtioCcwDevice, loadparm, 0), > > DEFINE_VIRTIO_BLK_FEATURES(VirtioCcwDevice, host_features[0]), > > DEFINE_VIRTIO_BLK_PROPERTIES(VirtIOBlkCcw, blk), > > DEFINE_PROP_END_OF_LIST(), > > diff --git a/hw/s390x/virtio-ccw.h b/hw/s390x/virtio-ccw.h > > index 84055e7..a3f706a 100644 > > --- a/hw/s390x/virtio-ccw.h > > +++ b/hw/s390x/virtio-ccw.h > > @@ -76,6 +76,7 @@ struct VirtioCcwDevice { > > SubchDev *sch; > > VirtIODevice *vdev; > > char *bus_id; > > + uint32_t loadparm; > > uint32_t host_features[VIRTIO_CCW_FEATURE_SIZE]; > > VirtIORNGConf rng; > > VirtioBusState bus; > > -- > > 1.7.9.5 > > >