From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Zeng, Xin" <xin.zeng@intel.com>
Cc: "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>,
"cornelia.huck@de.ibm.com" <cornelia.huck@de.ibm.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 13:58:28 +0300 [thread overview]
Message-ID: <20160809135132-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <82063967A54EF84C8AFCD6BD7F6AD9330E056887@SHSMSX103.ccr.corp.intel.com>
On Mon, Aug 08, 2016 at 06:27:15AM +0000, Zeng, Xin 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?
It depends on whether the bug is very entrenched and important. In most
cases, for minor bugs, it's better to just fix the bug in the driver or
the hypervisor and be done with it. For cases where
that's not feasible because many drivers relied on a specific bug,
and the bug is very important, we can always add more
if we run out of feature bits.
> Physical devices usually have a revision ID to mark its version,
Because compatibility is one way (new devices usually need
new drivers).
> 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?
ccw has version negotiation. It was only changed once at the 0.9->1.0
transition so far, it's not used for bug fixes. We could discuss adding
this to pci and mmio as well, but if yes this should be discussed
separately.
So far no argument made here was crypto specific, so
let's not put this in the crypto device.
> > --
> > MST
next prev parent reply other threads:[~2016-08-09 10:58 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
2016-08-09 13:42 ` Zeng, Xin
2016-08-09 10:58 ` Michael S. Tsirkin [this message]
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=20160809135132-mutt-send-email-mst@kernel.org \
--to=mst@redhat.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=cornelia.huck@de.ibm.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=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).