[libvirt PATCHv2 0/2] add external backend for tpm

Ján Tomko posted 2 patches 1 year, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1671112566.git.jtomko@redhat.com
src/conf/domain_audit.c                       | 11 +++++
src/conf/domain_conf.c                        | 35 ++++++++++++++++
src/conf/domain_conf.h                        |  4 ++
src/conf/domain_validate.c                    | 15 +++++++
src/conf/schemas/domaincommon.rng             | 22 ++++++++++
src/qemu/qemu_capabilities.c                  |  4 +-
src/qemu/qemu_cgroup.c                        |  1 +
src/qemu/qemu_command.c                       | 11 ++++-
src/qemu/qemu_domain.c                        |  4 ++
src/qemu/qemu_namespace.c                     |  1 +
src/qemu/qemu_tpm.c                           |  2 +
src/security/security_dac.c                   |  2 +
src/security/security_selinux.c               |  2 +
.../domaincapsdata/qemu_4.2.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_4.2.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_5.0.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_5.0.0-tcg.x86_64.xml  |  1 +
.../qemu_5.0.0-virt.aarch64.xml               |  1 +
tests/domaincapsdata/qemu_5.0.0.aarch64.xml   |  1 +
tests/domaincapsdata/qemu_5.0.0.ppc64.xml     |  1 +
tests/domaincapsdata/qemu_5.0.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_5.1.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_5.1.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_5.1.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_5.2.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_5.2.0-tcg.x86_64.xml  |  1 +
.../qemu_5.2.0-virt.aarch64.xml               |  1 +
tests/domaincapsdata/qemu_5.2.0.aarch64.xml   |  1 +
tests/domaincapsdata/qemu_5.2.0.ppc64.xml     |  1 +
tests/domaincapsdata/qemu_5.2.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_6.0.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_6.0.0-tcg.x86_64.xml  |  1 +
.../qemu_6.0.0-virt.aarch64.xml               |  1 +
tests/domaincapsdata/qemu_6.0.0.aarch64.xml   |  1 +
tests/domaincapsdata/qemu_6.0.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_6.1.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_6.1.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_6.1.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_6.2.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_6.2.0-tcg.x86_64.xml  |  1 +
.../qemu_6.2.0-virt.aarch64.xml               |  1 +
tests/domaincapsdata/qemu_6.2.0.aarch64.xml   |  1 +
tests/domaincapsdata/qemu_6.2.0.ppc64.xml     |  1 +
tests/domaincapsdata/qemu_6.2.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_7.0.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_7.0.0-tcg.x86_64.xml  |  1 +
.../qemu_7.0.0-virt.aarch64.xml               |  1 +
tests/domaincapsdata/qemu_7.0.0.aarch64.xml   |  1 +
tests/domaincapsdata/qemu_7.0.0.ppc64.xml     |  1 +
tests/domaincapsdata/qemu_7.0.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_7.1.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_7.1.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_7.1.0.ppc64.xml     |  1 +
tests/domaincapsdata/qemu_7.1.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_7.2.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_7.2.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_7.2.0.x86_64.xml    |  1 +
.../tpm-external.x86_64-latest.args           | 36 +++++++++++++++++
tests/qemuxml2argvdata/tpm-external.xml       | 40 +++++++++++++++++++
tests/qemuxml2argvtest.c                      |  1 +
.../tpm-external.x86_64-latest.xml            |  1 +
tests/qemuxml2xmltest.c                       |  1 +
63 files changed, 236 insertions(+), 2 deletions(-)
create mode 100644 tests/qemuxml2argvdata/tpm-external.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/tpm-external.xml
create mode 120000 tests/qemuxml2xmloutdata/tpm-external.x86_64-latest.xml
[libvirt PATCHv2 0/2] add external backend for tpm
Posted by Ján Tomko 1 year, 4 months ago
v2: add more chardev-like attributes to the source

https://bugzilla.redhat.com/show_bug.cgi?id=2063723

Ján Tomko (2):
  qemu: add external backend for tpm
  qemu: add tests for external swtpm

 src/conf/domain_audit.c                       | 11 +++++
 src/conf/domain_conf.c                        | 35 ++++++++++++++++
 src/conf/domain_conf.h                        |  4 ++
 src/conf/domain_validate.c                    | 15 +++++++
 src/conf/schemas/domaincommon.rng             | 22 ++++++++++
 src/qemu/qemu_capabilities.c                  |  4 +-
 src/qemu/qemu_cgroup.c                        |  1 +
 src/qemu/qemu_command.c                       | 11 ++++-
 src/qemu/qemu_domain.c                        |  4 ++
 src/qemu/qemu_namespace.c                     |  1 +
 src/qemu/qemu_tpm.c                           |  2 +
 src/security/security_dac.c                   |  2 +
 src/security/security_selinux.c               |  2 +
 .../domaincapsdata/qemu_4.2.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_4.2.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_5.0.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_5.0.0-tcg.x86_64.xml  |  1 +
 .../qemu_5.0.0-virt.aarch64.xml               |  1 +
 tests/domaincapsdata/qemu_5.0.0.aarch64.xml   |  1 +
 tests/domaincapsdata/qemu_5.0.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_5.0.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_5.1.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_5.1.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_5.1.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_5.2.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_5.2.0-tcg.x86_64.xml  |  1 +
 .../qemu_5.2.0-virt.aarch64.xml               |  1 +
 tests/domaincapsdata/qemu_5.2.0.aarch64.xml   |  1 +
 tests/domaincapsdata/qemu_5.2.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_5.2.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_6.0.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_6.0.0-tcg.x86_64.xml  |  1 +
 .../qemu_6.0.0-virt.aarch64.xml               |  1 +
 tests/domaincapsdata/qemu_6.0.0.aarch64.xml   |  1 +
 tests/domaincapsdata/qemu_6.0.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_6.1.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_6.1.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_6.1.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_6.2.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_6.2.0-tcg.x86_64.xml  |  1 +
 .../qemu_6.2.0-virt.aarch64.xml               |  1 +
 tests/domaincapsdata/qemu_6.2.0.aarch64.xml   |  1 +
 tests/domaincapsdata/qemu_6.2.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_6.2.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_7.0.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_7.0.0-tcg.x86_64.xml  |  1 +
 .../qemu_7.0.0-virt.aarch64.xml               |  1 +
 tests/domaincapsdata/qemu_7.0.0.aarch64.xml   |  1 +
 tests/domaincapsdata/qemu_7.0.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_7.0.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_7.1.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_7.1.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_7.1.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_7.1.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_7.2.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_7.2.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_7.2.0.x86_64.xml    |  1 +
 .../tpm-external.x86_64-latest.args           | 36 +++++++++++++++++
 tests/qemuxml2argvdata/tpm-external.xml       | 40 +++++++++++++++++++
 tests/qemuxml2argvtest.c                      |  1 +
 .../tpm-external.x86_64-latest.xml            |  1 +
 tests/qemuxml2xmltest.c                       |  1 +
 63 files changed, 236 insertions(+), 2 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/tpm-external.x86_64-latest.args
 create mode 100644 tests/qemuxml2argvdata/tpm-external.xml
 create mode 120000 tests/qemuxml2xmloutdata/tpm-external.x86_64-latest.xml

-- 
2.38.1

Re: [libvirt PATCHv2 0/2] add external backend for tpm
Posted by Michal Prívozník 1 year, 4 months ago
On 12/15/22 14:56, Ján Tomko wrote:
> v2: add more chardev-like attributes to the source
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=2063723
> 
> Ján Tomko (2):
>   qemu: add external backend for tpm
>   qemu: add tests for external swtpm
> 

>  63 files changed, 236 insertions(+), 2 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

Michal