From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: thuth@linux.vnet.ibm.com, qemu-devel@nongnu.org,
virtualization@lists.linux-foundation.org
Subject: Re: [PATCH RFC v6 19/20] virtio-blk: revision specific feature bits
Date: Fri, 30 Jan 2015 15:10:49 +0100 [thread overview]
Message-ID: <20150130151049.2e4c5331.cornelia.huck@de.ibm.com> (raw)
In-Reply-To: <20150107191144.GC8734@redhat.com>
On Wed, 7 Jan 2015 21:11:44 +0200
"Michael S. Tsirkin" <mst@redhat.com> wrote:
> On Wed, Jan 07, 2015 at 05:29:49PM +0100, Cornelia Huck wrote:
> > On Sun, 28 Dec 2014 12:24:46 +0200
> > "Michael S. Tsirkin" <mst@redhat.com> wrote:
> >
> > > On Thu, Dec 11, 2014 at 02:25:21PM +0100, Cornelia Huck wrote:
> > > > Wire up virtio-blk to provide different feature bit sets depending
> > > > on whether legacy or v1.0 has been requested.
> > > >
> > > > Note that VERSION_1 is still disabled due to missing ANY_LAYOUT support.
> > > >
> > > > Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
> > >
> > > So we need some way for devices to tell transports
> > > not to negotiate rev 1.
> > > Does clearing VERSION_1 have this effect?
> > >
> > I just noticed that my patch is running in circles here.
> >
> > What we need is probably the transport-dependent maximum revision
> > checker (which at least for ccw is acting on a device) pass in the
> > requested revision and check if the feature bits for the revision
> > include VERSION_1. Does that make sense?
>
> Just make devices set 'rev 1 supported' flag?
I'm now using the ->get_features() callback to check for VERSION_1
(assuming every device that supports it adds the bit in its callback)
and only allow rev 1 if it is present. Will play with this a bit as
well.
WARNING: multiple messages have this Message-ID (diff)
From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: thuth@linux.vnet.ibm.com, rusty@rustcorp.com.au,
qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org
Subject: Re: [Qemu-devel] [PATCH RFC v6 19/20] virtio-blk: revision specific feature bits
Date: Fri, 30 Jan 2015 15:10:49 +0100 [thread overview]
Message-ID: <20150130151049.2e4c5331.cornelia.huck@de.ibm.com> (raw)
In-Reply-To: <20150107191144.GC8734@redhat.com>
On Wed, 7 Jan 2015 21:11:44 +0200
"Michael S. Tsirkin" <mst@redhat.com> wrote:
> On Wed, Jan 07, 2015 at 05:29:49PM +0100, Cornelia Huck wrote:
> > On Sun, 28 Dec 2014 12:24:46 +0200
> > "Michael S. Tsirkin" <mst@redhat.com> wrote:
> >
> > > On Thu, Dec 11, 2014 at 02:25:21PM +0100, Cornelia Huck wrote:
> > > > Wire up virtio-blk to provide different feature bit sets depending
> > > > on whether legacy or v1.0 has been requested.
> > > >
> > > > Note that VERSION_1 is still disabled due to missing ANY_LAYOUT support.
> > > >
> > > > Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
> > >
> > > So we need some way for devices to tell transports
> > > not to negotiate rev 1.
> > > Does clearing VERSION_1 have this effect?
> > >
> > I just noticed that my patch is running in circles here.
> >
> > What we need is probably the transport-dependent maximum revision
> > checker (which at least for ccw is acting on a device) pass in the
> > requested revision and check if the feature bits for the revision
> > include VERSION_1. Does that make sense?
>
> Just make devices set 'rev 1 supported' flag?
I'm now using the ->get_features() callback to check for VERSION_1
(assuming every device that supports it adds the bit in its callback)
and only allow rev 1 if it is present. Will play with this a bit as
well.
next prev parent reply other threads:[~2015-01-30 14:10 UTC|newest]
Thread overview: 164+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-11 13:25 [PATCH RFC v6 00/20] qemu: towards virtio-1 host support Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2014-12-11 13:25 ` [PATCH RFC v6 01/20] linux-headers/virtio_config: Update with VIRTIO_F_VERSION_1 Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2014-12-11 13:25 ` [PATCH RFC v6 02/20] virtio: cull virtio_bus_set_vdev_features Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2015-01-22 1:24 ` David Gibson
2015-01-22 1:24 ` David Gibson
2014-12-11 13:25 ` [PATCH RFC v6 03/20] virtio: feature bit manipulation helpers Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2014-12-11 14:29 ` Thomas Huth
2014-12-11 14:29 ` Thomas Huth
2015-01-22 1:25 ` [Qemu-devel] " David Gibson
2015-01-22 1:25 ` David Gibson
2014-12-11 13:25 ` [PATCH RFC v6 04/20] virtio: add feature checking helpers Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2014-12-11 14:46 ` Thomas Huth
2014-12-11 14:46 ` [Qemu-devel] " Thomas Huth
2014-12-11 17:05 ` Michael S. Tsirkin
2014-12-11 17:05 ` [Qemu-devel] " Michael S. Tsirkin
2014-12-12 8:37 ` Cornelia Huck
2014-12-12 8:37 ` [Qemu-devel] " Cornelia Huck
2014-12-12 10:07 ` Cornelia Huck
2014-12-12 10:07 ` [Qemu-devel] " Cornelia Huck
2015-01-22 1:28 ` David Gibson
2015-01-22 1:28 ` David Gibson
2014-12-11 13:25 ` [PATCH RFC v6 05/20] virtio: support more feature bits Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2014-12-12 10:06 ` Thomas Huth
2014-12-12 10:06 ` [Qemu-devel] " Thomas Huth
2014-12-12 10:17 ` Cornelia Huck
2014-12-12 10:17 ` [Qemu-devel] " Cornelia Huck
2015-01-22 1:40 ` David Gibson
2015-01-22 1:40 ` David Gibson
2015-01-22 1:43 ` David Gibson
2015-01-22 1:43 ` David Gibson
2015-01-28 15:59 ` Cornelia Huck
2015-01-28 15:59 ` Cornelia Huck
2015-01-29 0:11 ` David Gibson
2015-01-29 0:11 ` David Gibson
2015-01-29 9:24 ` Thomas Huth
2015-01-29 9:24 ` Thomas Huth
2015-01-29 10:01 ` David Gibson
2015-01-29 10:01 ` David Gibson
2015-01-29 10:54 ` Michael S. Tsirkin
2015-01-29 10:54 ` Michael S. Tsirkin
2014-12-11 13:25 ` [PATCH RFC v6 06/20] virtio: endianness checks for virtio 1.0 devices Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2015-01-20 10:29 ` Stefan Hajnoczi
2015-01-20 10:29 ` [Qemu-devel] " Stefan Hajnoczi
2015-01-22 1:54 ` David Gibson
2015-01-22 1:54 ` David Gibson
2015-01-23 16:09 ` Greg Kurz
2015-01-23 16:09 ` Greg Kurz
2014-12-11 13:25 ` [PATCH RFC v6 07/20] virtio: allow virtio-1 queue layout Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2015-01-22 2:06 ` David Gibson
2015-01-28 16:07 ` Cornelia Huck
2015-01-28 16:07 ` Cornelia Huck
2015-01-29 0:14 ` David Gibson
2015-01-29 0:14 ` David Gibson
2015-01-22 2:06 ` David Gibson
2014-12-11 13:25 ` [PATCH RFC v6 08/20] dataplane: allow virtio-1 devices Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2015-01-20 10:43 ` Stefan Hajnoczi
2015-01-20 10:43 ` [Qemu-devel] " Stefan Hajnoczi
2015-01-20 12:56 ` Cornelia Huck
2015-01-20 12:56 ` [Qemu-devel] " Cornelia Huck
2015-01-20 14:47 ` Stefan Hajnoczi
2015-01-20 14:47 ` [Qemu-devel] " Stefan Hajnoczi
2015-01-22 2:12 ` David Gibson
2015-01-22 2:12 ` David Gibson
2014-12-11 13:25 ` [PATCH RFC v6 09/20] s390x/css: Add a callback for when subchannel gets disabled Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2015-01-20 10:50 ` Stefan Hajnoczi
2015-01-20 10:50 ` [Qemu-devel] " Stefan Hajnoczi
2014-12-11 13:25 ` [PATCH RFC v6 10/20] s390x/virtio-ccw: add virtio set-revision call Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2015-01-20 11:00 ` Stefan Hajnoczi
2015-01-20 11:00 ` [Qemu-devel] " Stefan Hajnoczi
2015-01-20 11:08 ` Stefan Hajnoczi
2015-01-20 11:08 ` [Qemu-devel] " Stefan Hajnoczi
2015-01-21 11:23 ` Cornelia Huck
2015-01-21 11:23 ` [Qemu-devel] " Cornelia Huck
2015-01-21 11:51 ` Thomas Huth
2015-01-21 11:51 ` Thomas Huth
2015-01-21 12:39 ` Cornelia Huck
2015-01-21 12:39 ` Cornelia Huck
2014-12-11 13:25 ` [PATCH RFC v6 11/20] s390x/virtio-ccw: support virtio-1 set_vq format Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2015-01-20 11:06 ` Stefan Hajnoczi
2015-01-20 11:06 ` [Qemu-devel] " Stefan Hajnoczi
2014-12-11 13:25 ` [PATCH RFC v6 12/20] virtio: disallow late feature changes for virtio-1 Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2014-12-12 10:55 ` Thomas Huth
2014-12-12 10:55 ` [Qemu-devel] " Thomas Huth
2014-12-12 11:18 ` Cornelia Huck
2014-12-12 11:18 ` [Qemu-devel] " Cornelia Huck
2014-12-12 11:25 ` Thomas Huth
2014-12-12 11:25 ` [Qemu-devel] " Thomas Huth
2015-01-20 11:14 ` Stefan Hajnoczi
2015-01-20 11:14 ` [Qemu-devel] " Stefan Hajnoczi
2015-01-22 2:15 ` David Gibson
2015-01-22 2:15 ` David Gibson
2014-12-11 13:25 ` [PATCH RFC v6 13/20] virtio: allow to fail setting status Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2014-12-30 12:25 ` Michael S. Tsirkin
2014-12-30 12:25 ` [Qemu-devel] " Michael S. Tsirkin
2015-01-07 16:13 ` Cornelia Huck
2015-01-07 16:13 ` [Qemu-devel] " Cornelia Huck
2015-01-07 19:08 ` Michael S. Tsirkin
2015-01-07 19:08 ` [Qemu-devel] " Michael S. Tsirkin
2015-01-08 7:20 ` Cornelia Huck
2015-01-08 7:20 ` [Qemu-devel] " Cornelia Huck
2015-01-08 8:09 ` Michael S. Tsirkin
2015-01-08 8:09 ` [Qemu-devel] " Michael S. Tsirkin
2014-12-11 13:25 ` [PATCH RFC v6 14/20] s390x/virtio-ccw: enable virtio 1.0 Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2015-01-20 11:15 ` Stefan Hajnoczi
2015-01-20 11:15 ` [Qemu-devel] " Stefan Hajnoczi
2014-12-11 13:25 ` [PATCH RFC v6 15/20] virtio-net: no writeable mac for virtio-1 Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2015-01-20 11:19 ` Stefan Hajnoczi
2015-01-20 11:19 ` [Qemu-devel] " Stefan Hajnoczi
2015-01-22 16:31 ` Cornelia Huck
2015-01-22 16:31 ` [Qemu-devel] " Cornelia Huck
2014-12-11 13:25 ` [PATCH RFC v6 16/20] virtio-net: support longer header Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2015-01-20 13:18 ` Stefan Hajnoczi
2015-01-20 13:18 ` [Qemu-devel] " Stefan Hajnoczi
2015-01-21 16:06 ` Cornelia Huck
2015-01-21 16:06 ` [Qemu-devel] " Cornelia Huck
2014-12-11 13:25 ` [PATCH RFC v6 17/20] virtio-net: enable virtio 1.0 Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2014-12-16 13:10 ` Michael S. Tsirkin
2014-12-16 13:10 ` [Qemu-devel] " Michael S. Tsirkin
2014-12-18 16:57 ` Cornelia Huck
2014-12-18 16:57 ` [Qemu-devel] " Cornelia Huck
2014-12-11 13:25 ` [PATCH RFC v6 18/20] virtio: support revision-specific features Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2014-12-28 8:32 ` Michael S. Tsirkin
2014-12-28 8:32 ` [Qemu-devel] " Michael S. Tsirkin
2015-01-07 16:22 ` Cornelia Huck
2015-01-07 16:22 ` [Qemu-devel] " Cornelia Huck
2015-01-07 19:10 ` Michael S. Tsirkin
2015-01-07 19:10 ` [Qemu-devel] " Michael S. Tsirkin
2015-01-30 14:08 ` Cornelia Huck
2015-01-30 14:08 ` [Qemu-devel] " Cornelia Huck
2015-02-01 21:29 ` Michael S. Tsirkin
2015-02-01 21:29 ` [Qemu-devel] " Michael S. Tsirkin
2015-02-02 14:10 ` Cornelia Huck
2015-02-02 14:10 ` [Qemu-devel] " Cornelia Huck
2014-12-11 13:25 ` [PATCH RFC v6 19/20] virtio-blk: revision specific feature bits Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
2014-12-28 10:24 ` Michael S. Tsirkin
2014-12-28 10:24 ` [Qemu-devel] " Michael S. Tsirkin
2015-01-07 16:29 ` Cornelia Huck
2015-01-07 16:29 ` [Qemu-devel] " Cornelia Huck
2015-01-07 19:11 ` Michael S. Tsirkin
2015-01-07 19:11 ` [Qemu-devel] " Michael S. Tsirkin
2015-01-30 14:10 ` Cornelia Huck [this message]
2015-01-30 14:10 ` Cornelia Huck
2014-12-11 13:25 ` [PATCH RFC v6 20/20] vhost: 64 bit features Cornelia Huck
2014-12-11 13:25 ` [Qemu-devel] " Cornelia Huck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150130151049.2e4c5331.cornelia.huck@de.ibm.com \
--to=cornelia.huck@de.ibm.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@linux.vnet.ibm.com \
--cc=virtualization@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.