Skip to content

RFC virtio-crypto: add multiplexing mode support

Longpeng(Mike) qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10virtio-crypto: remove virtio_crypto_op_ctrl_req structurehw/virtio/virtio-crypto.c include/standard-headers/linux/virtio_crypto.h+39 -280 replies
2/10virtio-crypto: add session creation logic for mux modehw/virtio/virtio-crypto.c include/standard-headers/linux/virtio_crypto.h+18 -20 replies
3/10virtio-crypto: remove queue_id field in ctrl headerhw/virtio/virtio-crypto.c include/standard-headers/linux/virtio_crypto.h+4 -70 replies
4/10virtio-crypto: remove virtio_crypto_op_data_req structurehw/virtio/virtio-crypto.c include/standard-headers/linux/virtio_crypto.h+25 -220 replies
5/10virtio-crypto: add dataq operation logic for mux modehw/virtio/virtio-crypto.c+5 -10 replies
6/10cryptodev: add stateless mode cipher supportbackends/cryptodev.c include/hw/virtio/virtio-crypto.h include/sysemu/cryptodev.h+40 -00 replies
7/10virtio-crypto: add stateless crypto request handlerbackends/cryptodev-builtin.c hw/virtio/virtio-crypto.c include/standard-headers/linux/virtio_crypto.h +1 more+462 -160 replies
8/10cryptodev: extract one util functionbackends/cryptodev-builtin.c+58 -420 replies
9/10cryptodev-builtin: add stateless cipher supportbackends/cryptodev-builtin.c+86 -00 replies
10/10virtio-crypto: add host feature bits supporthw/virtio/virtio-crypto.c include/hw/virtio/virtio-crypto.h+16 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RFC 00/10] virtio-crypto: add multiplexing mode support

*NOTE*
The code realization is based on the latest virtio crypto spec:
[PATCH v21 0/2] virtio-crypto: virtio crypto device specification

In session mode, the process of create/close a session
makes we have a least one full round-trip cost from guest to host to guest to be able to send any data for symmetric algorithms. It gets ourself into synchronization troubles in some scenarios like a web server handling lots of small requests whose algorithms and keys are different.

We can support one-blob request (no sessions) as well for symmetric algorithms, including HASH, MAC services. The benefit is obvious for HASH service because it's usually a one-blob operation.

---
Gonglei (2):
cryptodev: extract one util function
virtio-crypto: add host feature bits support

Longpeng(Mike) (8):
virtio-crypto: remove virtio_crypto_op_ctrl_req structure
virtio-crypto: add session creation logic for mux mode
virtio-crypto: remove queue_id field in ctrl header
virtio-crypto: remove virtio_crypto_op_data_req structure
virtio-crypto: add dataq operation logic for mux mode
cryptodev: add stateless mode cipher support
virtio-crypto: add stateless crypto request handler
cryptodev-builtin: add stateless cipher support

 backends/cryptodev-builtin.c                   | 189 +++++++++---
 backends/cryptodev.c                           |  21 ++
 hw/virtio/virtio-crypto.c                      | 403 +++++++++++++++++++++++--
 include/hw/virtio/virtio-crypto.h              |   2 +
 include/standard-headers/linux/virtio_crypto.h | 199 ++++++++++--
 include/sysemu/cryptodev.h                     |  21 ++
 6 files changed, 735 insertions(+), 100 deletions(-)
Signature · 1 line
1.8.3.1