Skip to content

Commit

Permalink
virtio-crypto: Maintain crypto device spec in separate directory
Browse files Browse the repository at this point in the history
Move virtio crypto device specification to its own file similar to
recent virtio devices.
While at it, place device specification, its driver and device
conformance into its own directory to have self contained device
specification.

Fixes: #153

Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
  • Loading branch information
paravmellanox authored and cohuck committed Jan 30, 2023
1 parent c9686f2 commit 8463bba
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
31 changes: 2 additions & 29 deletions conformance.tex
Original file line number Diff line number Diff line change
Expand Up @@ -141,21 +141,7 @@ \section{Conformance Targets}\label{sec:Conformance / Conformance Targets}
\input{device-types/balloon/driver-conformance.tex}
\input{device-types/scsi/driver-conformance.tex}
\input{device-types/input/driver-conformance.tex}

\conformance{\subsection}{Crypto Driver Conformance}\label{sec:Conformance / Driver Conformance / Crypto Driver Conformance}

A 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}
\input{device-types/crypto/driver-conformance.tex}

\conformance{\subsection}{Socket Driver Conformance}\label{sec:Conformance / Driver Conformance / Socket Driver Conformance}

Expand Down Expand Up @@ -341,20 +327,7 @@ \section{Conformance Targets}\label{sec:Conformance / Conformance Targets}
\input{device-types/scsi/device-conformance.tex}
\input{device-types/gpu/device-conformance.tex}
\input{device-types/input/device-conformance.tex}

\conformance{\subsection}{Crypto Device Conformance}\label{sec:Conformance / Device Conformance / Crypto Device Conformance}

A 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 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}
\input{device-types/crypto/device-conformance.tex}

\conformance{\subsection}{Socket Device Conformance}\label{sec:Conformance / Device Conformance / Socket Device Conformance}

Expand Down
2 changes: 1 addition & 1 deletion content.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3011,7 +3011,7 @@ \chapter{Device Types}\label{sec:Device Types}
\input{device-types/scsi/description.tex}
\input{device-types/gpu/description.tex}
\input{device-types/input/description.tex}
\input{virtio-crypto.tex}
\input{device-types/crypto/description.tex}
\input{virtio-vsock.tex}
\input{virtio-fs.tex}
\input{virtio-rpmb.tex}
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions device-types/crypto/device-conformance.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
\conformance{\subsection}{Crypto Device Conformance}\label{sec:Conformance / Device Conformance / Crypto Device Conformance}

A 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 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}
14 changes: 14 additions & 0 deletions device-types/crypto/driver-conformance.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
\conformance{\subsection}{Crypto Driver Conformance}\label{sec:Conformance / Driver Conformance / Crypto Driver Conformance}

A 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}

0 comments on commit 8463bba

Please sign in to comment.