From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: "Zeng, Xin" <xin.zeng@intel.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
"Gonglei (Arei)" <arei.gonglei@huawei.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"virtio-dev@lists.oasis-open.org"
<virtio-dev@lists.oasis-open.org>,
"Huangpeng (Peter)" <peter.huangpeng@huawei.com>,
Luonengjun <luonengjun@huawei.com>,
"stefanha@redhat.com" <stefanha@redhat.com>,
"denglingli@chinamobile.com" <denglingli@chinamobile.com>,
Jani Kokkonen <Jani.Kokkonen@huawei.com>,
"Ola.Liljedahl@arm.com" <Ola.Liljedahl@arm.com>,
"Varun.Sethi@freescale.com" <Varun.Sethi@freescale.com>,
"Keating, Brian A" <brian.a.keating@intel.com>,
"Ma, Liang J" <liang.j.ma@intel.com>,
"Griffin, John" <john.griffin@intel.com>,
"Hanweidong (Randy)" <hanweidong@huawei.com>,
"Huangweidong (C)" <weidong.huang@huawei.com>
Subject: Re: [Qemu-devel] [PATCH v6 1/2] virtio-crypto: Add virtio crypto device specification
Date: Tue, 9 Aug 2016 12:44:24 +0200 [thread overview]
Message-ID: <20160809124424.5fa450bc.cornelia.huck@de.ibm.com> (raw)
In-Reply-To: <82063967A54EF84C8AFCD6BD7F6AD9330E056887@SHSMSX103.ccr.corp.intel.com>
On Mon, 8 Aug 2016 06:27:15 +0000
"Zeng, Xin" <xin.zeng@intel.com> wrote:
> On Thu, Friday, August 05, 2016 3:56 AM, Michael S. Tsirkin wrote:
> > -----Original Message-----
> > From: Michael S. Tsirkin [mailto:mst@redhat.com]
> > Sent: Friday, August 05, 2016 3:56 AM
> > To: Gonglei (Arei)
> > Cc: Zeng, Xin; qemu-devel@nongnu.org; virtio-dev@lists.oasis-open.org;
> > Huangpeng (Peter); Luonengjun; cornelia.huck@de.ibm.com;
> > stefanha@redhat.com; denglingli@chinamobile.com; Jani Kokkonen;
> > Ola.Liljedahl@arm.com; Varun.Sethi@freescale.com; Keating, Brian A; Ma,
> > Liang J; Griffin, John; Hanweidong (Randy); Huangweidong (C)
> > Subject: Re: [PATCH v6 1/2] virtio-crypto: Add virtio crypto device
> > specification
> >
> > On Thu, Aug 04, 2016 at 11:24:26AM +0000, Gonglei (Arei) wrote:
> > > > > +The first driver-read-only field, \field{version} specifies the
> > > > > +virtio crypto's version, which is reserved for back-compatibility
> > > > > +in future.It's currently defined for the version field:
> > > > > +
> > > > > +\begin{lstlisting}
> > > > > +#define VIRTIO_CRYPTO_VERSION_1 (1)
> > > >
> > > > Suggest to remove this macro,
> > > > Do you think a version which is composed of major version and minor
> > > > version is better?
> > > >
> > >
> > > I think we should tell the developer how to set the value of version
> > > field, but I have no idea about which value or form is better, so I
> > > used 1 as the first version. What's your opinion?
> >
> > My opinion is that you should drop this completely. We do feature bits, not
> > version numbers in virtio. We do not want each device doing its own thing for
> > compatibility.
> >
>
> But as I mentioned before, considering the bug fix case, if each backend device
> release need a feature bit meaning "some bugs are fixed", are the feature bits
> enough?
> Physical devices usually have a revision ID to mark its version, could we have a
> revision Id field for each virtio device to distinguish the the virtio devices which
> have the same feature sets but have different version?
I think we really need to decouple device features from bugs in a
certain implementation.
Let's say we have a working virtio-crypto device in qemu 3.1, and a
working virtio-crypto device in another hypervisor 1.3. Both advertise
version 1.
Now we realize that we completely messed up the implementation of a
certain algorithm in qemu. We release qemu 3.2 with this fixed. The
other hypervisor 1.3 was not broken, and therefore they don't need to
do an update.
What should happen to 'version' now? If we keep it at 1, it does not
convey any further information. If we bump it to 2 in qemu 3.2, the
guest still does not know whether a version 1 device is broken or not:
It might be running in the other hypervisor 1.3, which is fine. We
would have basically forced the other hypervisor to release 1.4 for the
version bump to 2 (and deprecated a perfectly fine implementation).
For the above case, the only sane solutions I see are (a) have the host
admin deal with it by either updating qemu or disabling the broken
feature, or (b) have the guest discover the hypervisor and its version
and avoid using the feature if the version is known bad.
If the 'bugs' are rather design problems in the specification of an
algorithm, we should replace it with a v2 specification and guard that
via a feature bit. That is hopefully rare.
tl;dr - I think we should just drop version as it is not helpful.
next prev parent reply other threads:[~2016-08-09 10:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-01 9:20 [Qemu-devel] [PATCH v6 0/2] virtio-crypto: virtio crypto device specification Gonglei
2016-08-01 9:20 ` [Qemu-devel] [PATCH v6 1/2] virtio-crypto: Add " Gonglei
2016-08-04 7:48 ` Zeng, Xin
2016-08-04 11:24 ` Gonglei (Arei)
2016-08-04 19:56 ` Michael S. Tsirkin
2016-08-08 6:27 ` Zeng, Xin
2016-08-09 10:44 ` Cornelia Huck [this message]
2016-08-09 13:42 ` Zeng, Xin
2016-08-09 10:58 ` Michael S. Tsirkin
2016-08-09 13:42 ` Zeng, Xin
2016-08-10 1:11 ` Gonglei (Arei)
2016-08-01 9:20 ` [Qemu-devel] [PATCH v6 2/2] virtio-crypto: add conformance clauses Gonglei
2016-08-03 14:30 ` [Qemu-devel] [PATCH v6 0/2] virtio-crypto: virtio crypto device specification Michael S. Tsirkin
2016-08-03 14:33 ` Cornelia Huck
2016-08-03 14:40 ` Michael S. Tsirkin
2016-08-03 14:53 ` Cornelia Huck
2016-08-03 17:23 ` Cornelia Huck
2016-08-03 18:40 ` Michael S. Tsirkin
2016-08-04 19:50 ` Michael S. Tsirkin
2016-08-03 15:17 ` Zeng, Xin
2016-08-03 15:46 ` Michael S. Tsirkin
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=20160809124424.5fa450bc.cornelia.huck@de.ibm.com \
--to=cornelia.huck@de.ibm.com \
--cc=Jani.Kokkonen@huawei.com \
--cc=Ola.Liljedahl@arm.com \
--cc=Varun.Sethi@freescale.com \
--cc=arei.gonglei@huawei.com \
--cc=brian.a.keating@intel.com \
--cc=denglingli@chinamobile.com \
--cc=hanweidong@huawei.com \
--cc=john.griffin@intel.com \
--cc=liang.j.ma@intel.com \
--cc=luonengjun@huawei.com \
--cc=mst@redhat.com \
--cc=peter.huangpeng@huawei.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=virtio-dev@lists.oasis-open.org \
--cc=weidong.huang@huawei.com \
--cc=xin.zeng@intel.com \
/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).