Received: from eggs.gnu.org ([2001:4830:134:3::10]:35656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFNiD-0001F7-QC for qemu-devel@nongnu.org; Wed, 15 Jul 2015 10:31:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFNi7-0000PP-RE for qemu-devel@nongnu.org; Wed, 15 Jul 2015 10:31:05 -0400 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:53409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFNi7-0000Of-IR for qemu-devel@nongnu.org; Wed, 15 Jul 2015 10:30:59 -0400 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 15 Jul 2015 15:30:58 +0100 Date: Wed, 15 Jul 2015 16:30:51 +0200 From: Cornelia Huck Message-ID: <20150715163051.354798d6.cornelia.huck@de.ibm.com> In-Reply-To: <20150715170944-mutt-send-email-mst@redhat.com> References: <20150713153319-mutt-send-email-mst@redhat.com> <20150713152059.69b373ee.cornelia.huck@de.ibm.com> <20150713182901-mutt-send-email-mst@redhat.com> <20150714194344.529a6ea4.cornelia.huck@de.ibm.com> <20150715135237-mutt-send-email-mst@redhat.com> <20150715134638.065bbd03.cornelia.huck@de.ibm.com> <20150715145257-mutt-send-email-mst@redhat.com> <20150715144351.39348922.cornelia.huck@de.ibm.com> <20150715160821-mutt-send-email-mst@redhat.com> <20150715154022.0d388aae.cornelia.huck@de.ibm.com> <20150715170944-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 2/5] virtio-blk: disable scsi passthrough for 1.0 device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Kevin Wolf , qemu-block@nongnu.org, Jason Wang , qemu-devel@nongnu.org, Stefan Hajnoczi , pbonzini@redhat.com On Wed, 15 Jul 2015 17:11:57 +0300 "Michael S. Tsirkin" wrote: > > > > > Fine, but revision is negotiated way before features are > > > > > probed so why does it make a practical difference? > > > > > > > > Legacy drivers (that don't know about the set-revision command) will > > > > read features without revision negotiation - we need to offer them the > > > > legacy feature set. > > > > > > Right. So simply do if (revision < 1) return features & 0xffffffff > > > and that will do this, will it not? > > > > Not for bits that we want to offer for legacy but not for modern. > > I don't think this selective offering works at least for scsi. > scsi is a backend feature, if you connect a modern device > in front the device simply does not work. > It therefore makes no sense to attach a transitional device > to such a backend. My point is that we're losing legacy features with that approach, and it would not be possible to offer them to legacy guests with newer qemus (at least with ccw). What about the other way around (i.e. scsi is configured, therefore the device is legacy-only)? We'd only retain the scsi bit if it is actually wanted by the user's configuration. I would need to enforce a max revision of 0 for such a device in ccw, and pci could disable modern for it.