Received: from eggs.gnu.org ([2001:4830:134:3::10]:33597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZz6r-0005Sm-2o for qemu-devel@nongnu.org; Thu, 10 Sep 2015 06:29:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZz6n-0001fD-T6 for qemu-devel@nongnu.org; Thu, 10 Sep 2015 06:29:41 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:53945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZz6n-0001eR-Ko for qemu-devel@nongnu.org; Thu, 10 Sep 2015 06:29:37 -0400 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 10 Sep 2015 11:29:35 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id F08B5219004D for ; Thu, 10 Sep 2015 11:29:05 +0100 (BST) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t8AATXs326542092 for ; Thu, 10 Sep 2015 10:29:34 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t8AATX7d031638 for ; Thu, 10 Sep 2015 04:29:33 -0600 Date: Thu, 10 Sep 2015 12:29:31 +0200 From: Cornelia Huck Message-ID: <20150910122931.078812ca.cornelia.huck@de.ibm.com> In-Reply-To: <20150910121921-mutt-send-email-mst@redhat.com> References: <1441356869-57861-1-git-send-email-cornelia.huck@de.ibm.com> <1441356869-57861-5-git-send-email-cornelia.huck@de.ibm.com> <20150910120307-mutt-send-email-mst@redhat.com> <20150910111120.533da54c.cornelia.huck@de.ibm.com> <20150910121921-mutt-send-email-mst@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/4] virtio-ccw: enable virtio-1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: borntraeger@de.ibm.com, jasowang@redhat.com, qemu-devel@nongnu.org On Thu, 10 Sep 2015 12:22:42 +0300 "Michael S. Tsirkin" wrote: > On Thu, Sep 10, 2015 at 11:11:20AM +0200, Cornelia Huck wrote: > > On Thu, 10 Sep 2015 12:07:18 +0300 > > "Michael S. Tsirkin" wrote: > > > > > On Fri, Sep 04, 2015 at 10:54:29AM +0200, Cornelia Huck wrote: > > > > Let's enable revision 1 for virtio-ccw devices. We can always offer > > > > VERSION_1 as drivers in legacy mode won't be able to see it anyway. > > > > > > > > We have to introduce a way to set a lower maximum revision for a device > > > > to accommodate the following cases: > > > > - compat machines (to enforce legacy only) > > > > > > But you don't actually set this for any compat machines. > > > If you don't, this seems a bit pointless. > > > > Huh? The first hunk of this patch does this. > > Sure. Donnu how I could miss it, sorry. > > > > > > > > - virtio-blk with scsi support (version 1 + scsi is fenced by common > > > > code, with a user-configured max revision of 0 we can allow scsi > > > > via not offering VERSION_1) > > > > > > For this use, for pci users need to do disable_modern=true. > > > I find it unfortunate that for ccw one needs to do max_revision=0. > > > > I don't like the pci concept: much too coarse-grained and not very > > future proof. > > > > > > > > Revision numbers generally are a ccw specific concept. I'm not sure it > > > is wise to expose it to users. > > > > What is wrong about exposing transport-specific concepts? > > Nothing. Go ahead and expose as much of the low level as > makes sense. > > But it would be nice if there was also a portable way for people > that just want "virtio" and don't care about the low level details > of which transport it is. Proxy devices already look different depending on what transport you use, so I don't think it really matters. (And for most users, I'd expect they let a management layer take care of it anyway.) > > OTOH a conservative estimate of the # of people that will want > to play with this is pretty close to 0, so maybe it does not matter > much. The scsi vs. virtio-1 on ccw handling? Not very many (if anyone), yes. > > > > > > > > Signed-off-by: Cornelia Huck > > > > --- > > > > hw/s390x/s390-virtio-ccw.c | 4 ++++ > > > > hw/s390x/virtio-ccw.c | 30 ++++++++++++++++++++++++++++-- > > > > hw/s390x/virtio-ccw.h | 6 ++++-- > > > > 3 files changed, 36 insertions(+), 4 deletions(-)