[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host suppor
From: |
Cornelia Huck |
Subject: |
Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support |
Date: |
Thu, 27 Nov 2014 16:31:39 +0100 |
On Thu, 27 Nov 2014 17:24:22 +0200
"Michael S. Tsirkin" <address@hidden> wrote:
> On Thu, Nov 27, 2014 at 04:16:33PM +0100, Cornelia Huck wrote:
> > Yet another version of the virtio-1 support patches.
> >
> > This one has seen some (very) light testing with the virtio-1 guest
> > support patches currently on vhost-next.
> >
> > Changes from v3:
> >
> > - Add support for FEATURES_OK. We refuse to set features after the
> > driver has set this in the status field, and we allow to fail
> > setting the status if the features are inconsistent.
> > - Add missing virtio-1 changes for virtio-net (header size and mac).
> > - Dropped setting the VERSION_1 bit for virtio-blk: There's still
> > some stuff missing.
> >
> > For virtio-blk, we need to validate the feature bits if version 1 is
> > negotiated: some legacy features are not allowed in that case. I'm not
> > quite sure how to handle this, though. We could use the new
> > validate_features callback to verify that the driver negotiated a
> > sensible feature set, but that would require us to offer a superset
> > of legacy and version 1 bits, which feels wrong. Any ideas?
>
> No, that's violating the spec.
> I think the simplest way is to have separate features and
> legacy_features fields. Present the correct one depending on which
> revision was negotiated.
But revisions are a virtio-ccw only thing - what can other transports
do here? The basic problem is that we decide via a feature bit that
needs to be negotiated which feature bits we want to present. pci and
mmio don't have a way to know whether the driver wants to use 1.0 or
legacy prior to feature negotiation, do they?
- [Qemu-devel] [PATCH RFC v4 08/16] s390x/css: Add a callback for when subchannel gets disabled, (continued)
- [Qemu-devel] [PATCH RFC v4 08/16] s390x/css: Add a callback for when subchannel gets disabled, Cornelia Huck, 2014/11/27
- [Qemu-devel] [PATCH RFC v4 09/16] s390x/virtio-ccw: add virtio set-revision call, Cornelia Huck, 2014/11/27
- [Qemu-devel] [PATCH RFC v4 10/16] s390x/virtio-ccw: support virtio-1 set_vq format, Cornelia Huck, 2014/11/27
- [Qemu-devel] [PATCH RFC v4 11/16] virtio: disallow late feature changes for virtio-1, Cornelia Huck, 2014/11/27
- [Qemu-devel] [PATCH RFC v4 12/16] virtio: allow to fail setting status, Cornelia Huck, 2014/11/27
- [Qemu-devel] [PATCH RFC v4 13/16] s390x/virtio-ccw: enable virtio 1.0, Cornelia Huck, 2014/11/27
- [Qemu-devel] [PATCH RFC v4 14/16] virtio-net: no writeable mac for virtio-1, Cornelia Huck, 2014/11/27
- [Qemu-devel] [PATCH RFC v4 16/16] virtio-net: enable virtio 1.0, Cornelia Huck, 2014/11/27
- [Qemu-devel] [PATCH RFC v4 15/16] virtio-net: support longer header, Cornelia Huck, 2014/11/27
- Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support, Michael S. Tsirkin, 2014/11/27
- Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support,
Cornelia Huck <=
- Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support, Michael S. Tsirkin, 2014/11/27
- Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support, Cornelia Huck, 2014/11/27
- Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support, Michael S. Tsirkin, 2014/11/27
- Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support, Cornelia Huck, 2014/11/27
- Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support, Michael S. Tsirkin, 2014/11/27
- Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support, Cornelia Huck, 2014/11/28
- Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support, Michael S. Tsirkin, 2014/11/27
- Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support, Cornelia Huck, 2014/11/28