mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-11 05:24:44 -05:00
conf: introduce crypto device
Introduce crypto device like:
<crypto model='virtio' type='qemu'>
<backend model='builtin' queues='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
</crypto>
<crypto model='virtio' type='qemu'>
<backend model='lkcf'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
</crypto>
Currently, crypto model supports virtio only, type supports qemu only
(vhost-user in the plan). For the qemu type, backend supports modle
builtin/lkcf, and the queues is optional.
Changes in this commit:
- docs: formatdomain.rst
- schemas: domaincommon.rng
- conf: crypto related domain conf
- qemu: crypto related
- tests: crypto related test
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
committed by
Michal Privoznik
parent
d5ecc2aa77
commit
7ba22d21a1
@@ -8305,6 +8305,27 @@ The optional ``driver`` element allows to specify virtio options, see
|
||||
...
|
||||
|
||||
|
||||
Crypto
|
||||
~~~~~~
|
||||
|
||||
A crypto device. The ``model`` attribute defaults to ``virtio``.
|
||||
:since:`Since v9.0.0` ``model`` supports ``virtio`` only. The ``type`` attribute
|
||||
defaults to ``qemu``. :since:`Since v9.0.0` ``type`` supports ``qemu`` only.
|
||||
The optional attribute ``backend`` is required if the ``type`` is ``qemu``, the
|
||||
``model`` attribute can be ``builtint`` and ``lkcf``, the optional attribute
|
||||
``queues`` specifies the number of virt queues for virtio crypto.
|
||||
|
||||
::
|
||||
|
||||
...
|
||||
<devices>
|
||||
<crypto model='virtio' type='qemu'>
|
||||
<backend model='builtin' queues='1'/>
|
||||
</crypto>
|
||||
</devices>
|
||||
...
|
||||
|
||||
|
||||
Security label
|
||||
--------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user