From patchwork Fri Aug 24 00:43:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Longpeng (Mike, Cloud Infrastructure Service Product Dept.)" X-Patchwork-Id: 961653 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=huawei.com Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41xMxg6Bt0z9s2P for ; Fri, 24 Aug 2018 10:44:55 +1000 (AEST) Received: from localhost ([::1]:39312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ft0Dd-0002MP-H1 for incoming@patchwork.ozlabs.org; Thu, 23 Aug 2018 20:44:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ft0Cs-0002L4-KV for qemu-devel@nongnu.org; Thu, 23 Aug 2018 20:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ft0Co-0000Uh-9I for qemu-devel@nongnu.org; Thu, 23 Aug 2018 20:44:06 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:38452 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ft0Cn-0000SN-PU for qemu-devel@nongnu.org; Thu, 23 Aug 2018 20:44:02 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D0436547F9841; Fri, 24 Aug 2018 08:43:54 +0800 (CST) Received: from localhost (10.177.246.209) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.399.0; Fri, 24 Aug 2018 08:43:42 +0800 From: "Longpeng(Mike)" To: , Date: Fri, 24 Aug 2018 08:43:34 +0800 Message-ID: <1535071416-212072-1-git-send-email-longpeng2@huawei.com> X-Mailer: git-send-email 1.8.4.msysgit.0 MIME-Version: 1.0 X-Originating-IP: [10.177.246.209] X-CFilter-Loop: Reflected X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 45.249.212.35 Subject: [Qemu-devel] [PATCH v25 0/2] virtio-crypto: virtio crypto device specification X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pasic@linux.vnet.ibm.com, Ola.Liljedahl@arm.com, brian.a.keating@intel.com, wangxinxin.wang@huawei.com, mst@redhat.com, liang.j.ma@intel.com, jasowang@redhat.com, cohuck@redhat.com, xin.zeng@intel.com, agraf@suse.de, john.griffin@intel.com, arei.gonglei@huawei.com, stefanha@redhat.com, jianjay.zhou@huawei.com, Varun.Sethi@freescale.com, Jani.Kokkonen@huawei.com, "Longpeng\(Mike\)" , vincent.jardin@6wind.com, denglingli@chinamobile.com, weidong.huang@huawei.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" --- v25 -> v24 - fix some typos and letex grammar. v24 -> v23 - Some enhancements based on Halil's suggestion. [Halil] v23 -> v22 - rename MUX_MODE to REVISION_1 [Halil] - fixed-length paramenters' instead of 'header' and 'variable-length parameters' instead of 'extra parameters' [Halil] - add guidance about VIRTIO_CRYPTO_FLAG_SESSION_MODE [Halil] - other fixes. [Longpeng] v22 -> v21 - fix some typos and grammar fixes [Halil, Stefan] - reorder names in alphabetical order [Stefan] - redescribe the date format [Halil] v21 -> v20 - rename 'queue_id' to 'reserved' [Halil] - redescribe the format of the structures which using 'union' in the previous version [Halil] v20 -> v19 - fix some typos and grammar fixes [Halil] - make queue_id reserved [Halil] - remove 'Steps of Operation' v19 -> v18: - fix some typos and grammar fixes [Stefan, Halil] - rename VIRTIO_CRYPTO_F_STATELESS_MODE to VIRTIO_CRYPTO_F_MUX_MODE - describe the VIRTIO_CRYPTO_STATUS in detial. [Halil] - refactor and redescribe the controlq/dataq request's format of mux mode. [Halil] - other small fixes. [Halil] v18 -> v17: - fix many English grammar problems suggested by Stefan, Thanks a lot! v17 -> v16: - Some grammar fixes [Stefan, Halil, Michael] - add a section named "Supported crypto services" in order to explain bit numbers and valuse clearly. [Halil, Cornelia] - avoid word reptition [Halil] - rename non-session mode to stateless mode [Halil] - change descriptions for all elements in struct virtio_crypto_config [Halil] - add Halil as a reviewer in the ackonwledgement part, thanks for his work. - other fixes here and there. Changes since v15: - use feature bits for non-session mode in order to keep compatibility with pre-existing code. [Halil & Michael] - introduce VIRTIO_CRYPTO_F_ NON_SESSION_MODE feature bit to control all other non-session mode feature bits. - fix some typos. [Stefan] - introduce struct virtio_crypto_op_data_req_mux to support both session and non-session based crypto operations and keep compatibility with pre-existing code. Changes since v14: - drop VIRTIO_CRYPTO_S_STARTED status [Halil & Cornelia] - correct a sentence about dataqueue and controlq in the first paragraph. [Halil] - change a MAY to MUST about max_dataqueues. [Halil] - add non-session mode support a) add four features for different crypto services to identify wheather support session mode. b) rewrite some For pervious versions of virtio crypto spec, Pls see: [v18]: https://www.mail-archive.com/qemu-devel@nongnu.org/msg444897.html [v14]: https://lists.gnu.org/archive/html/qemu-devel/2016-11/msg02212.html [v13]: https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg07348.html For more information, please see: http://qemu-project.org/Features/VirtioCrypto Longpeng(Mike) (2): virtio-crypto: Add virtio crypto device specification virtio-crypto: Add conformance clauses acknowledgements.tex | 4 + conformance.tex | 29 + content.tex | 2 + virtio-crypto.tex | 1533 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1568 insertions(+) create mode 100644 virtio-crypto.tex