From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cantE-00047B-4s for qemu-devel@nongnu.org; Mon, 06 Feb 2017 13:19:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cantA-00063K-7w for qemu-devel@nongnu.org; Mon, 06 Feb 2017 13:19:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35628) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cantA-00063E-2N for qemu-devel@nongnu.org; Mon, 06 Feb 2017 13:19:44 -0500 Date: Mon, 6 Feb 2017 20:19:39 +0200 From: "Michael S. Tsirkin" Message-ID: <20170206201814-mutt-send-email-mst@kernel.org> References: <1484727757-41240-1-git-send-email-arei.gonglei@huawei.com> <1484727757-41240-2-git-send-email-arei.gonglei@huawei.com> <20170203103316.GA29200@stefanha-x1.localdomain> <33183CC9F5247A488A2544077AF19020DA1AED04@DGGEMA505-MBX.china.huawei.com> <20170206154625.GB32590@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170206154625.GB32590@stefanha-x1.localdomain> Subject: Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: "Gonglei (Arei)" , Stefan Hajnoczi , "qemu-devel@nongnu.org" , "virtio-dev@lists.oasis-open.org" , "Huangweidong (C)" , "john.griffin@intel.com" , "Zhoujian (jay)" , "Varun.Sethi@freescale.com" , "denglingli@chinamobile.com" , "arei.gonglei@hotmail.com" , "agraf@suse.de" , "nmorey@kalray.eu" , longpeng , "vincent.jardin@6wind.com" , "Ola.Liljedahl@arm.com" , Luonengjun , "xin.zeng@intel.com" , "liang.j.ma@intel.com" , "cornelia.huck@de.ibm.com" , Jani Kokkonen , "pasic@linux.vnet.ibm.com" , "brian.a.keating@intel.com" , "claudio.fontana@huawei.com" , "mike.caraman@nxp.com" , "Wubin (H)" On Mon, Feb 06, 2017 at 03:46:25PM +0000, Stefan Hajnoczi wrote: > On Mon, Feb 06, 2017 at 01:48:09AM +0000, Gonglei (Arei) wrote: > > > > +\item The device MUST set \field{max_size} to show the maximum size of > > > crypto request the device supports. > > > > > > In bytes? > > > > > > > +\item The device MUST set \field{max_cipher_key_len} to show the > > > maximum length of cipher key if the device supports CIPHER service. > > > > > > In bits or bytes? > > > > > > > +\item The device MUST set \field{max_auth_key_len} to show the maximum > > > length of authenticated key if the device supports MAC service. > > > > > > In bits or bytes? > > > > > > > All lengths in virtio crypto spec are bytes. > > Please move this before the first length field is defined: > > +\begin{note} > +The basic unit of all data length the byte. > +\end{note} And I'd rewrite as All data length fields specify the length in bytes. > > It should be at the beginning of the spec.