From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVOkn-0005hm-PA for qemu-devel@nongnu.org; Thu, 04 Aug 2016 15:56:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVOkh-0001mR-QT for qemu-devel@nongnu.org; Thu, 04 Aug 2016 15:56:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVOkh-0001mN-Ko for qemu-devel@nongnu.org; Thu, 04 Aug 2016 15:56:23 -0400 Date: Thu, 4 Aug 2016 22:56:20 +0300 From: "Michael S. Tsirkin" Message-ID: <20160804225402-mutt-send-email-mst@kernel.org> References: <1470043221-37728-1-git-send-email-arei.gonglei@huawei.com> <1470043221-37728-2-git-send-email-arei.gonglei@huawei.com> <82063967A54EF84C8AFCD6BD7F6AD9330E054607@SHSMSX103.ccr.corp.intel.com> <33183CC9F5247A488A2544077AF19020B03894EF@SZXEMA503-MBS.china.huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <33183CC9F5247A488A2544077AF19020B03894EF@SZXEMA503-MBS.china.huawei.com> Subject: Re: [Qemu-devel] [PATCH v6 1/2] virtio-crypto: Add virtio crypto device specification List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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)" 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. -- MST