]> xenbits.xensource.com Git - libvirt.git/commit
conf: introduce crypto device
authorzhenwei pi <pizhenwei@bytedance.com>
Tue, 17 Jan 2023 01:46:50 +0000 (09:46 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 25 Jan 2023 15:00:42 +0000 (16:00 +0100)
commit7ba22d21a1876cab2e9184a68218cfa4fb430b6e
treeea34e9e8da618e3143b154c31c9f25564a68123b
parentd5ecc2aa779d48be32bba51a6c8c16635c52721d
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>
18 files changed:
docs/formatdomain.rst
src/ch/ch_domain.c
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/domain_postparse.c
src/conf/domain_validate.c
src/conf/schemas/domaincommon.rng
src/conf/virconftypes.h
src/libvirt_private.syms
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain_address.c
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_validate.c
tests/qemuxml2argvdata/crypto-builtin.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/crypto-builtin.x86_64-latest.xml [new symlink]
tests/qemuxml2xmltest.c