From: "Michael S. Tsirkin" <mst@redhat.com>
To: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: thuth@linux.vnet.ibm.com, rusty@rustcorp.com.au,
qemu-devel@nongnu.org, kvm@vger.kernel.org,
virtualization@lists.linux-foundation.org
Subject: Re: [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support
Date: Thu, 27 Nov 2014 17:24:22 +0200 [thread overview]
Message-ID: <20141127152422.GA26747@redhat.com> (raw)
In-Reply-To: <1417101409-29482-1-git-send-email-cornelia.huck@de.ibm.com>
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.
> Cornelia Huck (13):
> virtio: cull virtio_bus_set_vdev_features
> virtio: support more feature bits
> s390x/virtio-ccw: fix check for WRITE_FEAT
> virtio: introduce legacy virtio devices
> virtio: allow virtio-1 queue layout
> dataplane: allow virtio-1 devices
> s390x/virtio-ccw: support virtio-1 set_vq format
> virtio: disallow late feature changes for virtio-1
> virtio: allow to fail setting status
> s390x/virtio-ccw: enable virtio 1.0
> virtio-net: no writeable mac for virtio-1
> virtio-net: support longer header
> virtio-net: enable virtio 1.0
>
> Thomas Huth (3):
> linux-headers/virtio_config: Update with VIRTIO_F_VERSION_1
> s390x/css: Add a callback for when subchannel gets disabled
> s390x/virtio-ccw: add virtio set-revision call
>
> hw/9pfs/virtio-9p-device.c | 7 +-
> hw/block/dataplane/virtio-blk.c | 4 +-
> hw/block/virtio-blk.c | 9 +-
> hw/char/virtio-serial-bus.c | 9 +-
> hw/net/virtio-net.c | 52 +++++--
> hw/s390x/css.c | 12 ++
> hw/s390x/css.h | 1 +
> hw/s390x/s390-virtio-bus.c | 9 +-
> hw/s390x/virtio-ccw.c | 206 +++++++++++++++++++------
> hw/s390x/virtio-ccw.h | 7 +-
> hw/scsi/vhost-scsi.c | 7 +-
> hw/scsi/virtio-scsi-dataplane.c | 2 +-
> hw/scsi/virtio-scsi.c | 10 +-
> hw/virtio/Makefile.objs | 2 +-
> hw/virtio/dataplane/Makefile.objs | 2 +-
> hw/virtio/dataplane/vring.c | 96 ++++++------
> hw/virtio/virtio-balloon.c | 8 +-
> hw/virtio/virtio-bus.c | 23 +--
> hw/virtio/virtio-mmio.c | 9 +-
> hw/virtio/virtio-pci.c | 13 +-
> hw/virtio/virtio-rng.c | 2 +-
> hw/virtio/virtio.c | 88 +++++++++--
> include/hw/virtio/dataplane/vring-accessors.h | 75 +++++++++
> include/hw/virtio/dataplane/vring.h | 14 +-
> include/hw/virtio/virtio-access.h | 4 +
> include/hw/virtio/virtio-bus.h | 10 +-
> include/hw/virtio/virtio.h | 39 ++++-
> linux-headers/linux/virtio_config.h | 3 +
> 28 files changed, 523 insertions(+), 200 deletions(-)
> create mode 100644 include/hw/virtio/dataplane/vring-accessors.h
>
> --
> 1.7.9.5
next prev parent reply other threads:[~2014-11-27 15:24 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-27 15:16 [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 01/16] linux-headers/virtio_config: Update with VIRTIO_F_VERSION_1 Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 02/16] virtio: cull virtio_bus_set_vdev_features Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 03/16] virtio: support more feature bits Cornelia Huck
2014-11-27 15:34 ` Michael S. Tsirkin
2014-11-27 15:40 ` Cornelia Huck
2014-11-27 15:44 ` Michael S. Tsirkin
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 04/16] s390x/virtio-ccw: fix check for WRITE_FEAT Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 05/16] virtio: introduce legacy virtio devices Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 06/16] virtio: allow virtio-1 queue layout Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 07/16] dataplane: allow virtio-1 devices Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 08/16] s390x/css: Add a callback for when subchannel gets disabled Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 09/16] s390x/virtio-ccw: add virtio set-revision call Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 10/16] s390x/virtio-ccw: support virtio-1 set_vq format Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 11/16] virtio: disallow late feature changes for virtio-1 Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 12/16] virtio: allow to fail setting status Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 13/16] s390x/virtio-ccw: enable virtio 1.0 Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 14/16] virtio-net: no writeable mac for virtio-1 Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 15/16] virtio-net: support longer header Cornelia Huck
2014-11-27 15:16 ` [Qemu-devel] [PATCH RFC v4 16/16] virtio-net: enable virtio 1.0 Cornelia Huck
2014-11-27 15:24 ` Michael S. Tsirkin [this message]
2014-11-27 15:31 ` [Qemu-devel] [PATCH RFC v4 00/16] qemu: towards virtio-1 host support Cornelia Huck
2014-11-27 15:42 ` Michael S. Tsirkin
2014-11-27 16:06 ` Cornelia Huck
2014-11-27 16:18 ` Michael S. Tsirkin
2014-11-27 16:28 ` Cornelia Huck
2014-11-27 16:35 ` Michael S. Tsirkin
2014-11-28 9:47 ` Cornelia Huck
2014-11-27 16:38 ` Michael S. Tsirkin
2014-11-28 9:50 ` Cornelia Huck
2015-02-25 4:20 ` [Qemu-devel] Qemu and virtio 1.0 Rusty Russell
2015-02-25 11:26 ` Cornelia Huck
2015-03-02 11:43 ` Michael S. Tsirkin
2015-03-02 12:00 ` 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=20141127152422.GA26747@redhat.com \
--to=mst@redhat.com \
--cc=cornelia.huck@de.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=rusty@rustcorp.com.au \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).