virtio-crypto: virtio crypto device specification
v12 cover virtio-crypto: virtio crypto device specification
This is the specification about a new virtio crypto device.
You can get the source code from the below website:
[PATCH v3 00/10] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg04132.html
[PATCH v4 00/13] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg07327.html
[PATCH v5 00/14] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00963.html
For more information, please see:
http://qemu-project.org/Features/VirtioCrypto
Please help to review, thanks.
Changes since v11:
- drop scatter-gather I/O definition for virtio crypto device because The vring already provides scatter-gather I/O. It is usually not
necessary to define scatter-gather I/O at the device level. [Stefan]
- perfect algorithm chain parameters' definition.
- add HASH/MAC parameter structure.
Changes since v10:
- fix typos s/filed/field/. [Xin]
- replace 'real cypto accelerator' with 'backend crypto accelerator'. [mst]
- drop KDF, ASYM, PRIMITIVE services description temporarily. [mst]
- write a device requirement are testable about VIRTIO_CRYPTO_S_HW_READY. [mst]
- add a space before * in one code comment. [mst]
- reset the layout of all crypto operations for better asymmetric algos support. [Xin]
- add more detailed description for initialization vector under different modes.
- sed -i 's/VIRTIO_CRYPTO_OP_/VIRTIO_CRYPTO_/g' for general usage in asym algos. [Xin]
Changes since v9:
- request a native speaker go over the text and fix corresponding grammar issues. [mst]
- make some description more appropriated over here and there. [mst]
- rewrite some requirement for both device and driver. [mst]
- use RFC 2119 keywords. [mst]
- fix some complaints by Xelatex and typoes. [Xin Zeng]
- add scatter/getter chain support for possible large block data.
Thanks for your review, Michael and Xin.
Changes from v8:
- add additional auth gpa and length to struct virtio_crypto_sym_data_req;
- add definition of op in struct virtio_crypto_cipher_session_para, VIRTIO_CRYPTO_OP_ENCRYPT and VIRTIO_CRYPTO_OP_DECRYPT;
- make all structures 64bit aligned in order to support different
architectures more conveniently [Alex & Stefan]
- change to devicenormative{\subsection} and \drivernormative{\subsection} in some sections [Stefan]
- driver does not have to initialize all data virtqueues if it wants to use fewer [Stefan]
- drop VIRTIO_CRYPTO_NO_SERVICE definition [Stefan]
- many grammatical problems and typos. [Stefan]
- rename VIRTIO_CRYPTO_MAC_CMAC_KASUMI_F9 to VIRTIO_CRYPTO_MAC_CMAC_KASUMI_F9,
and VIRTIO_CRYPTO_MAC_CMAC_SNOW3G_UIA2 to VIRTIO_CRYPTO_MAC_SNOW3G_UIA2. [Liang Ma]
- drop queue_id property of struct virtio_crypto_op_data_req.
- reconstruct some structures about session operation request.
- introduce struct virtio_crypto_alg_chain_session_req and struct virtio_crypto_alg_chain_data_req, introduce chain para, output, input structures as well.
- change some sections' layout for better compatibility, for asymmetric algos. [Xin Zeng]
Changes from v7:
- fix some grammar or typo problems.
- add more detailed description at steps of encryption section.
Changes from v6:
- drop verion filed in struct virtio_crypto_config. [Michael & Cornelia]
- change the incorrect description in initialization routine. [Zeng Xin]
- redefine flag u16 to make structure alignment. [Zeng Xin]
- move the content of virtio_crypto_hash_session_para into virtio_crypto_hash_session_input directly, Same to MAC/SYM/AEAD session creation. [Zeng Xin]
- adjuest the sequence of idata and odata refer to the virtio scsi parts, meanwhile add the comments of device-readable/writable for them.
- add restrictive documents for the guest memory in some structure, which
MUST be gauranted to be allocated and physically-contiguous.
Changes from v5:
- add conformance clauses for virtio crypto device. [Michael]
- drop VIRTIO_CRYPTO_S_STARTED. [Michael]
- fix some characters problems. [Stefan]
- add a MAC algorithm, named VIRTIO_CRYPTO_MAC_ZUC_EIA3. [Zeng Xin]
- add the fourth return code, named VIRTIO_CRYPTO_OP_INVSESS used for invalid session id when executing crypto operations.
- drop some gpu stuff forgot to delete. [Michael]
- convert tab to space all over the content.
Changes from v4:
- introduce crypto services into virtio crypto device. The services currently defined are CIPHER, MAC, HASH, AEAD, KDF, ASYM, PRIMITIVE.
- define a unified crypto request format that is consisted of general header + service specific request, Where 'general header' is for all crypto request, 'service specific request' is composed of operation parameter + input data + output data in generally. operation parameter is algorithm-specific parameters,
input data is the data should be operated ,
output data is the "operation result + result buffer".
- redefine the algorithms and structure based on above crypto services.
- rearrange the title and subtitle
- Only support CIPHER, MAC, HASH and AEAD crypto services, and Xin will focus KDF, ASYM and PRIMITIVE services.
- Some other corresponding fixes.
- Make a formal patch using tex type.
This version is a big reconstruction based on Zeng, Xin' comments, thanks a lot.
Changes from v3:
- Don't use enum is the spec but macros in specific structures. [Michael & Stefan]
- Add two complete structures for session creation and closing, so that the spec is clear on how to lay out the request. [Stefan]
- Definite the crypto operation request with assigned structure, in this way, each data request only occupies *one entry* of the Vring descriptor table, which *improves* the *throughput* of data transferring.
Changes from v2:
- Reserve virtio device ID 20 for crypto device. [Cornelia]
- Drop all feature bits, those capabilities are offered by the device all the time. [Stefan & Cornelia]
- Add a new section 1.4.2 for driver requirements. [Stefan]
- Use definite type definition instead of enum type in some structure. [Stefan]
- Add virtio_crypto_cipher_alg definition. [Stefan]
- Add a "Device requirements" section as using MUST. [Stefan]
- Some grammar nits fixes and typo fixes. [Stefan & Cornelia]
- Add one VIRTIO_CRYPTO_S_STARTED status for the driver as the flag of virtio-crypto device started and can work now.
Great thanks for Stefan and Cornelia!
Changes from v1:
- Drop the feature bit definition for each algorithm, and using config space instead [Cornelia]
- Add multiqueue support and add corresponding feature bit
- Update Encryption process and header definition
- Add session operation process and add corresponding header description
- Other better description in order to fit for virtio spec [Michael]
- Some other trivial fixes.
Gonglei (2):
virtio-crypto: Add virtio crypto device specification
virtio-crypto: Add conformance clauses
conformance.tex | 30 ++ content.tex | 2 + virtio-crypto.tex | 999 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1031 insertions(+) create mode 100644 virtio-crypto.tex
Signature · 1 line
1.7.12.4
PATCH v12 1/2 virtio-crypto: Add virtio crypto device specification
The virtio crypto device is a virtual crypto device (ie. hardware crypto accelerator card). Currently, the virtio crypto device provides the following crypto services: CIPHER, MAC, HASH, and AEAD.
In this patch, CIPHER, MAC, HASH, AEAD services are introduced.
VIRTIO-153
--- content.tex | 2 + virtio-crypto.tex | 999 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 1001 insertions(+) create mode 100644 virtio-crypto.tex
content.tex +2 -0
@@ -5750,6 +5750,8 @@ descriptor for the \field{sense_len}, \field{residual}, \field{status_qualifier}, \field{status}, \field{response} and \field{sense} fields. +\input{virtio-crypto.tex} + \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits} Currently there are three device-independent feature bits defined:
virtio-crypto.tex new file +999 -0
1,000 lines not on this page · raw message
Signature · 1 line
1.7.12.4
PATCH v12 2/2 virtio-crypto: Add conformance clauses
In reply to GongleiAdd the conformance targets and clauses for
virtio-crypto device.
--- conformance.tex | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
conformance.tex +30 -0
@@ -146,6 +146,21 @@ An SCSI host driver MUST conform to the following normative statements: \item \ref{drivernormative:Device Types / SCSI Host Device / Device Operation / Device Operation: eventq} \end{itemize} +\subsection{Crypto Driver Conformance}\label{sec:Conformance / Driver Conformance / Crypto Driver Conformance} + +An Crypto driver MUST conform to the following normative statements: + +\begin{itemize} +\item \ref{drivernormative:Device Types / Crypto Device / Device configuration layout} +\item \ref{drivernormative:Device Types / Crypto Device / Device Initialization} +\item \ref{drivernormative:Device Types / Crypto Device / Device Operation / Control Virtqueue / Session operation / Session operation: create session} +\item \ref{drivernormative:Device Types / Crypto Device / Device Operation / Control Virtqueue / Session operation / Session operation: destroy session} +\item \ref{drivernormative:Device Types / Crypto Device / Device Operation / HASH Service operation} +\item \ref{drivernormative:Device Types / Crypto Device / Device Operation / MAC Service operation} +\item \ref{drivernormative:Device Types / Crypto Device / Device Operation / Symmetric algorithms Operation} +\item \ref{drivernormative:Device Types / Crypto Device / Device Operation / AEAD Service operation} +\end{itemize} + \section{Device Conformance}\label{sec:Conformance / Device Conformance} A device MUST conform to the following normative statements:
@@ -267,6 +282,21 @@ An SCSI host device MUST conform to the following normative statements: \item \ref{devicenormative:Device Types / SCSI Host Device / Device Operation / Device Operation: eventq} \end{itemize} +\subsection{Crypto Device Conformance}\label{sec:Conformance / Device Conformance / Crypto Device Conformance} + +An Crypto device MUST conform to the following normative statements: + +\begin{itemize} +\item \ref{devicenormative:Device Types / Crypto Device / Device configuration layout} +\item \ref{devicenormative:Device Types / Crypto Device / Device Initialization} +\item \ref{devicenormative:Device Types / Crypto Device / Device Operation / Control Virtqueue / Session operation / Session operation: create session} +\item \ref{devicenormative:Device Types / Crypto Device / Device Operation / Control Virtqueue / Session operation / Session operation: destroy session} +\item \ref{devicenormative:Device Types / Crypto Device / Device Operation / HASH Service operation} +\item \ref{devicenormative:Device Types / Crypto Device / Device Operation / MAC Service operation} +\item \ref{devicenormative:Device Types / Crypto Device / Device Operation / Symmetric algorithms Operation} +\item \ref{devicenormative:Device Types / Crypto Device / Device Operation / AEAD Service operation} +\end{itemize} + \section{Legacy Interface: Transitional Device and Transitional Driver Conformance}\label{sec:Conformance / Legacy Interface: Transitional Device and
Signature · 1 line
1.7.12.4
Ping....
And the corresponding source code v9 on QEMU side had been posted:
[PATCH v9 00/12] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg04755.html
Regards,
-Gonglei
Quoted 184 lines
-----Original Message-----
From: Gonglei (Arei)
Sent: Monday, October 10, 2016 11:37 AM
Subject: [PATCH v12 0/2] virtio-crypto: virtio crypto device specificationThis is the specification about a new virtio crypto device.
You can get the source code from the below website:
[PATCH v3 00/10] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg04132.html[PATCH v4 00/13] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg07327.html[PATCH v5 00/14] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00963.htmlFor more information, please see:
http://qemu-project.org/Features/VirtioCryptoPlease help to review, thanks.
CC Michael S. Tsirkin <[email protected]>CC Cornelia Huck <[email protected]>CC Stefan Hajnoczi <[email protected]>CC Lingli Deng <[email protected]>CC Jani Kokkonen <[email protected]>CC Ola Liljedahl <[email protected]>CC Varun Sethi <[email protected]>CC Zeng Xin <[email protected]>CC Keating Brian <[email protected]>CC Ma Liang J <[email protected]>CC Griffin John <[email protected]>CC Hanweidong <[email protected]>CC Mihai Claudiu Caraman <[email protected]>Changes since v11:
- drop scatter-gather I/O definition for virtio crypto device because The vring already provides scatter-gather I/O. It is usually not
necessary to define scatter-gather I/O at the device level. [Stefan]
- perfect algorithm chain parameters' definition.
- add HASH/MAC parameter structure.Changes since v10:
- fix typos s/filed/field/. [Xin]
- replace 'real cypto accelerator' with 'backend crypto accelerator'. [mst]
- drop KDF, ASYM, PRIMITIVE services description temporarily. [mst]
- write a device requirement are testable aboutVIRTIO_CRYPTO_S_HW_READY. [mst]
- add a space before * in one code comment. [mst]
- reset the layout of all crypto operations for better asymmetric algos support.
[Xin]
- add more detailed description for initialization vector under different modes.
- sed -i 's/VIRTIO_CRYPTO_OP_/VIRTIO_CRYPTO_/g' for general usage in
asym algos. [Xin]Changes since v9:
- request a native speaker go over the text and fix corresponding grammar
issues. [mst]
- make some description more appropriated over here and there. [mst]
- rewrite some requirement for both device and driver. [mst]
- use RFC 2119 keywords. [mst]
- fix some complaints by Xelatex and typoes. [Xin Zeng]
- add scatter/getter chain support for possible large block data.Thanks for your review, Michael and Xin.
Changes from v8:
- add additional auth gpa and length to structvirtio_crypto_sym_data_req;
- add definition of op in structvirtio_crypto_cipher_session_para,VIRTIO_CRYPTO_OP_ENCRYPTandVIRTIO_CRYPTO_OP_DECRYPT;
- make all structures 64bit aligned in order to support different architectures more conveniently [Alex & Stefan]
- change to devicenormative{\subsection} and \drivernormative{\subsection}
in some sections [Stefan]
- driver does not have to initialize all data virtqueues if it wants to use fewer
[Stefan]
- dropVIRTIO_CRYPTO_NO_SERVICEdefinition [Stefan]
- many grammatical problems and typos. [Stefan]
- renameVIRTIO_CRYPTO_MAC_CMAC_KASUMI_F9toVIRTIO_CRYPTO_MAC_CMAC_KASUMI_F9,
andVIRTIO_CRYPTO_MAC_CMAC_SNOW3G_UIA2toVIRTIO_CRYPTO_MAC_SNOW3G_UIA2. [Liang Ma]
- dropqueue_idproperty of structvirtio_crypto_op_data_req.
- reconstruct some structures about session operation request.
- introduce structvirtio_crypto_alg_chain_session_reqand structvirtio_crypto_alg_chain_data_req,
introduce chain para, output, input structures as well.
- change some sections' layout for better compatibility, for asymmetric algos.
[Xin Zeng]Changes from v7:
- fix some grammar or typo problems.
- add more detailed description at steps of encryption section.Changes from v6:
- drop verion filed in structvirtio_crypto_config. [Michael & Cornelia]
- change the incorrect description in initialization routine. [Zeng Xin]
- redefine flag u16 to make structure alignment. [Zeng Xin]
- move the content ofvirtio_crypto_hash_session_paraintovirtio_crypto_hash_session_inputdirectly, Same to MAC/SYM/AEAD
session creation. [Zeng Xin]
- adjuest the sequence of idata and odata refer to the virtio scsi parts, meanwhile add the comments of device-readable/writable for them.
- add restrictive documents for the guest memory in some structure, which MUST be gauranted to be allocated and physically-contiguous.Changes from v5:
- add conformance clauses for virtio crypto device. [Michael]
- dropVIRTIO_CRYPTO_S_STARTED. [Michael]
- fix some characters problems. [Stefan]
- add a MAC algorithm, namedVIRTIO_CRYPTO_MAC_ZUC_EIA3. [Zeng Xin]
- add the fourth return code, namedVIRTIO_CRYPTO_OP_INVSESSused for invalid session id when executing crypto operations.
- drop some gpu stuff forgot to delete. [Michael]
- convert tab to space all over the content.Changes from v4:
- introduce crypto services into virtio crypto device. The services currently defined are CIPHER, MAC, HASH, AEAD, KDF, ASYM, PRIMITIVE.
- define a unified crypto request format that is consisted of general header + service specific request, Where 'general header' is for
all
crypto request, 'service specific request' is composed of operation parameter + input data + output data in generally. operation parameter is algorithm-specific parameters,
input data is the data should be operated ,
output data is the "operation result + result buffer".
- redefine the algorithms and structure based on above crypto services.
- rearrange the title and subtitle
- Only support CIPHER, MAC, HASH and AEAD crypto services, and Xin will focus KDF, ASYM and PRIMITIVE services.
- Some other corresponding fixes.
- Make a formal patch using tex type.This version is a big reconstruction based on Zeng, Xin' comments, thanks a lot.
Changes from v3:
- Don't use enum is the spec but macros in specific structures. [Michael &
Stefan]
- Add two complete structures for session creation and closing, so that the spec is clear on how to lay out the request. [Stefan]
- Definite the crypto operation request with assigned structure, in this way, each data request only occupies *one entry* of the Vring descriptor table, which *improves* the *throughput* of data transferring.Changes from v2:
- Reserve virtio device ID 20 for crypto device. [Cornelia]
- Drop all feature bits, those capabilities are offered by the device all the time.
[Stefan & Cornelia]
- Add a new section 1.4.2 for driver requirements. [Stefan]
- Use definite type definition instead of enum type in some structure. [Stefan]
- Addvirtio_crypto_cipher_algdefinition. [Stefan]
- Add a "Device requirements" section as using MUST. [Stefan]
- Some grammar nits fixes and typo fixes. [Stefan & Cornelia]
- Add oneVIRTIO_CRYPTO_S_STARTEDstatus for the driver as the flag of
virtio-crypto device started and can work now.Great thanks for Stefan and Cornelia!
Changes from v1:
- Drop the feature bit definition for each algorithm, and using config space
instead [Cornelia]
- Add multiqueue support and add corresponding feature bit
- Update Encryption process and header definition
- Add session operation process and add corresponding header description
- Other better description in order to fit for virtio spec [Michael]
- Some other trivial fixes.Gonglei (2):
virtio-crypto: Add virtio crypto device specification
virtio-crypto: Add conformance clausesconformance.tex | 30 ++ content.tex | 2 + virtio-crypto.tex | 999 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1031 insertions(+) create mode 100644 virtio-crypto.tex--
1.7.12.4
Quoted 9 lines · Gonglei (Arei)
Ping....
And the corresponding source code v9 on QEMU side had been posted:
[PATCH v9 00/12] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg04755.htmlRegards,
-Gonglei
If there are no comments and this is ready to get votes now, pls open the jira issue that you created.
I can then start the ballot.
Quoted 185 lines
Quoted 185 lines
-----Original Message-----
From: Gonglei (Arei)
Sent: Monday, October 10, 2016 11:37 AM
Subject: [PATCH v12 0/2] virtio-crypto: virtio crypto device specificationThis is the specification about a new virtio crypto device.
You can get the source code from the below website:
[PATCH v3 00/10] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg04132.html[PATCH v4 00/13] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg07327.html[PATCH v5 00/14] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00963.htmlFor more information, please see:
http://qemu-project.org/Features/VirtioCryptoPlease help to review, thanks.
CC Michael S. Tsirkin <[email protected]>CC Cornelia Huck <[email protected]>CC Stefan Hajnoczi <[email protected]>CC Lingli Deng <[email protected]>CC Jani Kokkonen <[email protected]>CC Ola Liljedahl <[email protected]>CC Varun Sethi <[email protected]>CC Zeng Xin <[email protected]>CC Keating Brian <[email protected]>CC Ma Liang J <[email protected]>CC Griffin John <[email protected]>CC Hanweidong <[email protected]>CC Mihai Claudiu Caraman <[email protected]>Changes since v11:
- drop scatter-gather I/O definition for virtio crypto device because The vring already provides scatter-gather I/O. It is usually not
necessary to define scatter-gather I/O at the device level. [Stefan]
- perfect algorithm chain parameters' definition.
- add HASH/MAC parameter structure.Changes since v10:
- fix typos s/filed/field/. [Xin]
- replace 'real cypto accelerator' with 'backend crypto accelerator'. [mst]
- drop KDF, ASYM, PRIMITIVE services description temporarily. [mst]
- write a device requirement are testable aboutVIRTIO_CRYPTO_S_HW_READY. [mst]
- add a space before * in one code comment. [mst]
- reset the layout of all crypto operations for better asymmetric algos support.
[Xin]
- add more detailed description for initialization vector under different modes.
- sed -i 's/VIRTIO_CRYPTO_OP_/VIRTIO_CRYPTO_/g' for general usage in
asym algos. [Xin]Changes since v9:
- request a native speaker go over the text and fix corresponding grammar
issues. [mst]
- make some description more appropriated over here and there. [mst]
- rewrite some requirement for both device and driver. [mst]
- use RFC 2119 keywords. [mst]
- fix some complaints by Xelatex and typoes. [Xin Zeng]
- add scatter/getter chain support for possible large block data.Thanks for your review, Michael and Xin.
Changes from v8:
- add additional auth gpa and length to structvirtio_crypto_sym_data_req;
- add definition of op in structvirtio_crypto_cipher_session_para,VIRTIO_CRYPTO_OP_ENCRYPTandVIRTIO_CRYPTO_OP_DECRYPT;
- make all structures 64bit aligned in order to support different architectures more conveniently [Alex & Stefan]
- change to devicenormative{\subsection} and \drivernormative{\subsection}
in some sections [Stefan]
- driver does not have to initialize all data virtqueues if it wants to use fewer
[Stefan]
- dropVIRTIO_CRYPTO_NO_SERVICEdefinition [Stefan]
- many grammatical problems and typos. [Stefan]
- renameVIRTIO_CRYPTO_MAC_CMAC_KASUMI_F9toVIRTIO_CRYPTO_MAC_CMAC_KASUMI_F9,
andVIRTIO_CRYPTO_MAC_CMAC_SNOW3G_UIA2toVIRTIO_CRYPTO_MAC_SNOW3G_UIA2. [Liang Ma]
- dropqueue_idproperty of structvirtio_crypto_op_data_req.
- reconstruct some structures about session operation request.
- introduce structvirtio_crypto_alg_chain_session_reqand structvirtio_crypto_alg_chain_data_req,
introduce chain para, output, input structures as well.
- change some sections' layout for better compatibility, for asymmetric algos.
[Xin Zeng]Changes from v7:
- fix some grammar or typo problems.
- add more detailed description at steps of encryption section.Changes from v6:
- drop verion filed in structvirtio_crypto_config. [Michael & Cornelia]
- change the incorrect description in initialization routine. [Zeng Xin]
- redefine flag u16 to make structure alignment. [Zeng Xin]
- move the content ofvirtio_crypto_hash_session_paraintovirtio_crypto_hash_session_inputdirectly, Same to MAC/SYM/AEAD
session creation. [Zeng Xin]
- adjuest the sequence of idata and odata refer to the virtio scsi parts, meanwhile add the comments of device-readable/writable for them.
- add restrictive documents for the guest memory in some structure, which MUST be gauranted to be allocated and physically-contiguous.Changes from v5:
- add conformance clauses for virtio crypto device. [Michael]
- dropVIRTIO_CRYPTO_S_STARTED. [Michael]
- fix some characters problems. [Stefan]
- add a MAC algorithm, namedVIRTIO_CRYPTO_MAC_ZUC_EIA3. [Zeng Xin]
- add the fourth return code, namedVIRTIO_CRYPTO_OP_INVSESSused for invalid session id when executing crypto operations.
- drop some gpu stuff forgot to delete. [Michael]
- convert tab to space all over the content.Changes from v4:
- introduce crypto services into virtio crypto device. The services currently defined are CIPHER, MAC, HASH, AEAD, KDF, ASYM, PRIMITIVE.
- define a unified crypto request format that is consisted of general header + service specific request, Where 'general header' is for
all
crypto request, 'service specific request' is composed of operation parameter + input data + output data in generally. operation parameter is algorithm-specific parameters,
input data is the data should be operated ,
output data is the "operation result + result buffer".
- redefine the algorithms and structure based on above crypto services.
- rearrange the title and subtitle
- Only support CIPHER, MAC, HASH and AEAD crypto services, and Xin will focus KDF, ASYM and PRIMITIVE services.
- Some other corresponding fixes.
- Make a formal patch using tex type.This version is a big reconstruction based on Zeng, Xin' comments, thanks a lot.
Changes from v3:
- Don't use enum is the spec but macros in specific structures. [Michael &
Stefan]
- Add two complete structures for session creation and closing, so that the spec is clear on how to lay out the request. [Stefan]
- Definite the crypto operation request with assigned structure, in this way, each data request only occupies *one entry* of the Vring descriptor table, which *improves* the *throughput* of data transferring.Changes from v2:
- Reserve virtio device ID 20 for crypto device. [Cornelia]
- Drop all feature bits, those capabilities are offered by the device all the time.
[Stefan & Cornelia]
- Add a new section 1.4.2 for driver requirements. [Stefan]
- Use definite type definition instead of enum type in some structure. [Stefan]
- Addvirtio_crypto_cipher_algdefinition. [Stefan]
- Add a "Device requirements" section as using MUST. [Stefan]
- Some grammar nits fixes and typo fixes. [Stefan & Cornelia]
- Add oneVIRTIO_CRYPTO_S_STARTEDstatus for the driver as the flag of
virtio-crypto device started and can work now.Great thanks for Stefan and Cornelia!
Changes from v1:
- Drop the feature bit definition for each algorithm, and using config space
instead [Cornelia]
- Add multiqueue support and add corresponding feature bit
- Update Encryption process and header definition
- Add session operation process and add corresponding header description
- Other better description in order to fit for virtio spec [Michael]
- Some other trivial fixes.Gonglei (2):
virtio-crypto: Add virtio crypto device specification
virtio-crypto: Add conformance clausesconformance.tex | 30 ++ content.tex | 2 + virtio-crypto.tex | 999 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1031 insertions(+) create mode 100644 virtio-crypto.tex--
1.7.12.4
Quoted 16 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Michael S. Tsirkin
Sent: Friday, October 28, 2016 6:14 AM
Subject: [virtio-dev] Re: [PATCH v12 0/2] virtio-crypto: virtio crypto device specificationQuoted 7 lines · Gonglei (Arei)
Ping....
And the corresponding source code v9 on QEMU side had been posted:
[PATCH v9 00/12] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg04755.html
Quoted 7 lines
Quoted 2 lines
Regards,
-GongleiIf there are no comments and this is ready to get votes now, pls open the jira issue that you created.
I can then start the ballot.
OK, I see. Thanks!
I'd like to add max_size in the device config as you mentioned in other thread, and submit v13 as the final version if not other comments.
And then open the jira issue.
Regards,
-Gonglei
Quoted 25 lines · Gonglei (Arei)
Quoted 16 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Michael S. Tsirkin
Sent: Friday, October 28, 2016 6:14 AM
Subject: [virtio-dev] Re: [PATCH v12 0/2] virtio-crypto: virtio crypto device specificationQuoted 7 lines · Gonglei (Arei)
Ping....
And the corresponding source code v9 on QEMU side had been posted:
[PATCH v9 00/12] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg04755.htmlQuoted 7 lines
Quoted 2 lines
Regards,
-GongleiIf there are no comments and this is ready to get votes now, pls open the jira issue that you created.
I can then start the ballot.OK, I see. Thanks!
Quoted 7 lines
I'd like to add
max_sizein the device config as you mentioned in other thread, and submit v13 as the final version if not other comments.
And then open the jira issue.Regards,
-Gonglei
Sounds good. So pls post this ASAP and give poeple a week to review before opening.
It's a good idea to go over the driver
and see whether there are other limits that need to be set to limit resource utilization by guest, if yes add those - you are a better judge of this.
Signature · 1 line
MST
Quoted 38 lines
From: Michael S. Tsirkin [mailto:[email protected]]
Sent: Friday, October 28, 2016 9:13 AM
To: Gonglei (Arei)
Subject: Re: [virtio-dev] Re: [PATCH v12 0/2] virtio-crypto: virtio crypto device specificationQuoted 3 lines · Gonglei (Arei)
Quoted 3 lines
-----Original Message-----
From: [email protected][mailto:[email protected]]
Quoted 27 lines
Quoted 13 lines
On Behalf Of Michael S. Tsirkin
Sent: Friday, October 28, 2016 6:14 AM
Subject: [virtio-dev] Re: [PATCH v12 0/2] virtio-crypto: virtio crypto device specificationQuoted 7 lines · Gonglei (Arei)
Ping....
And the corresponding source code v9 on QEMU side had been posted:
[PATCH v9 00/12] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg04755.htmlQuoted 7 lines
Quoted 2 lines
Regards,
-GongleiIf there are no comments and this is ready to get votes now, pls open the jira issue that you created.
I can then start the ballot.OK, I see. Thanks!
I'd like to add
max_sizein the device config as you mentioned in other thread, and submit v13 as the final version if not other comments.
And then open the jira issue.
Quoted 6 lines
Quoted 2 lines
Regards,
-GongleiSounds good. So pls post this ASAP and give poeple a week to review before opening.
OK.
Quoted 5 lines
It's a good idea to go over the driver
and see whether there are other limits that need to be set to limit resource utilization by guest, if yes add those - you are a better judge of this.
Yep, I'll recheck them. Thanks.
Regards,
-Gonglei
Quoted 12 lines
Subject: [virtio-dev] Re: [PATCH v12 0/2] virtio-crypto: virtio crypto device specification
Quoted 7 lines · Gonglei (Arei)
Ping....
And the corresponding source code v9 on QEMU side had been posted:
[PATCH v9 00/12] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg04755.html
Quoted 7 lines
Quoted 2 lines
Regards,
-GongleiIf there are no comments and this is ready to get votes now, pls open the jira issue that you created.
I can then start the ballot.
Hi Michael,
I just updated and opened the jira issue.
Please address it, thanks :)
Regards,
-Gonglei
Quoted 19 lines · Gonglei (Arei)
Quoted 12 lines
Subject: [virtio-dev] Re: [PATCH v12 0/2] virtio-crypto: virtio crypto device specification
Quoted 7 lines · Gonglei (Arei)
Ping....
And the corresponding source code v9 on QEMU side had been posted:
[PATCH v9 00/12] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg04755.htmlQuoted 7 lines
Quoted 2 lines
Regards,
-GongleiIf there are no comments and this is ready to get votes now, pls open the jira issue that you created.
I can then start the ballot.
Quoted 7 lines
Hi Michael,
I just updated and opened the jira issue.
Please address it, thanks :)Regards,
-Gonglei
Looks like there are still minor comments, pls address, wait a bit then ping me again.
Thanks!
Signature · 1 line
MST
Quoted 30 lines
From: [email protected] [mailto:[email protected]] On Behalf Of Michael S. Tsirkin
Subject: Re: [virtio-dev] Re: [PATCH v12 0/2] virtio-crypto: virtio crypto device specificationQuoted 24 lines · Gonglei (Arei)
Quoted 12 lines
Subject: [virtio-dev] Re: [PATCH v12 0/2] virtio-crypto: virtio crypto device specification
Quoted 7 lines · Gonglei (Arei)
Ping....
And the corresponding source code v9 on QEMU side had been posted:
[PATCH v9 00/12] virtio-crypto: introduce framework and device emulation
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg04755.htmlQuoted 7 lines
Quoted 2 lines
Regards,
-GongleiIf there are no comments and this is ready to get votes now, pls open the jira issue that you created.
I can then start the ballot.Hi Michael,
I just updated and opened the jira issue.
Please address it, thanks :)
Quoted 7 lines
Quoted 2 lines
Regards,
-GongleiLooks like there are still minor comments, pls address, wait a bit then ping me again.
Thanks!
OK, thanks :)
Regards,
-Gonglei
Quoted 6 lines
--
MST---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]