[libvirt PATCH 0/3] Expose TPM availability in domain capabilities

Daniel P. Berrangé berrange at redhat.com
Tue Nov 23 18:04:05 UTC 2021


If we can report whuether TPM is available, then mgmt apps can enable it
by default for new VMs. This is important because OS like Win11 consider
TPM to be mandatory.

Daniel P. Berrangé (3):
  conf: add TPM devices to domain capabilities
  qemu: fill in domain capabilities for TPMs
  qemu: mock swtpm initialization in tests

 docs/schemas/domaincaps.rng                   | 10 ++++++
 src/conf/domain_capabilities.c                | 14 ++++++++
 src/conf/domain_capabilities.h                | 10 ++++++
 src/qemu/qemu_capabilities.c                  | 32 +++++++++++++++++++
 src/qemu/qemu_capabilities.h                  |  3 ++
 .../domaincapsdata/qemu_2.11.0-q35.x86_64.xml |  9 ++++++
 .../domaincapsdata/qemu_2.11.0-tcg.x86_64.xml |  9 ++++++
 tests/domaincapsdata/qemu_2.11.0.s390x.xml    |  6 ++++
 tests/domaincapsdata/qemu_2.11.0.x86_64.xml   |  9 ++++++
 .../domaincapsdata/qemu_2.12.0-q35.x86_64.xml | 10 ++++++
 .../domaincapsdata/qemu_2.12.0-tcg.x86_64.xml | 10 ++++++
 .../qemu_2.12.0-virt.aarch64.xml              |  6 ++++
 tests/domaincapsdata/qemu_2.12.0.aarch64.xml  |  6 ++++
 tests/domaincapsdata/qemu_2.12.0.ppc64.xml    |  6 ++++
 tests/domaincapsdata/qemu_2.12.0.s390x.xml    |  6 ++++
 tests/domaincapsdata/qemu_2.12.0.x86_64.xml   | 10 ++++++
 .../domaincapsdata/qemu_3.0.0-q35.x86_64.xml  | 10 ++++++
 .../domaincapsdata/qemu_3.0.0-tcg.x86_64.xml  | 10 ++++++
 tests/domaincapsdata/qemu_3.0.0.ppc64.xml     |  6 ++++
 tests/domaincapsdata/qemu_3.0.0.s390x.xml     |  6 ++++
 tests/domaincapsdata/qemu_3.0.0.x86_64.xml    | 10 ++++++
 .../domaincapsdata/qemu_3.1.0-q35.x86_64.xml  | 10 ++++++
 .../domaincapsdata/qemu_3.1.0-tcg.x86_64.xml  | 10 ++++++
 tests/domaincapsdata/qemu_3.1.0.ppc64.xml     |  6 ++++
 tests/domaincapsdata/qemu_3.1.0.x86_64.xml    | 10 ++++++
 .../domaincapsdata/qemu_4.0.0-q35.x86_64.xml  | 10 ++++++
 .../domaincapsdata/qemu_4.0.0-tcg.x86_64.xml  | 10 ++++++
 .../qemu_4.0.0-virt.aarch64.xml               |  4 +++
 tests/domaincapsdata/qemu_4.0.0.aarch64.xml   |  4 +++
 tests/domaincapsdata/qemu_4.0.0.ppc64.xml     |  4 +++
 tests/domaincapsdata/qemu_4.0.0.s390x.xml     |  4 +++
 tests/domaincapsdata/qemu_4.0.0.x86_64.xml    | 10 ++++++
 .../domaincapsdata/qemu_4.1.0-q35.x86_64.xml  | 10 ++++++
 .../domaincapsdata/qemu_4.1.0-tcg.x86_64.xml  | 10 ++++++
 tests/domaincapsdata/qemu_4.1.0.x86_64.xml    | 10 ++++++
 .../domaincapsdata/qemu_4.2.0-q35.x86_64.xml  | 10 ++++++
 .../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml  | 10 ++++++
 .../qemu_4.2.0-virt.aarch64.xml               |  4 +++
 tests/domaincapsdata/qemu_4.2.0.aarch64.xml   |  4 +++
 tests/domaincapsdata/qemu_4.2.0.ppc64.xml     |  6 ++++
 tests/domaincapsdata/qemu_4.2.0.s390x.xml     |  4 +++
 tests/domaincapsdata/qemu_4.2.0.x86_64.xml    | 10 ++++++
 .../domaincapsdata/qemu_5.0.0-q35.x86_64.xml  | 10 ++++++
 .../domaincapsdata/qemu_5.0.0-tcg.x86_64.xml  | 10 ++++++
 .../qemu_5.0.0-virt.aarch64.xml               |  9 ++++++
 tests/domaincapsdata/qemu_5.0.0.aarch64.xml   |  9 ++++++
 tests/domaincapsdata/qemu_5.0.0.ppc64.xml     | 10 ++++++
 tests/domaincapsdata/qemu_5.0.0.x86_64.xml    | 10 ++++++
 .../domaincapsdata/qemu_5.1.0-q35.x86_64.xml  | 10 ++++++
 .../domaincapsdata/qemu_5.1.0-tcg.x86_64.xml  | 10 ++++++
 tests/domaincapsdata/qemu_5.1.0.sparc.xml     |  4 +++
 tests/domaincapsdata/qemu_5.1.0.x86_64.xml    | 10 ++++++
 .../domaincapsdata/qemu_5.2.0-q35.x86_64.xml  | 10 ++++++
 .../domaincapsdata/qemu_5.2.0-tcg.x86_64.xml  | 10 ++++++
 .../qemu_5.2.0-virt.aarch64.xml               |  9 ++++++
 tests/domaincapsdata/qemu_5.2.0.aarch64.xml   |  9 ++++++
 tests/domaincapsdata/qemu_5.2.0.ppc64.xml     | 10 ++++++
 tests/domaincapsdata/qemu_5.2.0.s390x.xml     |  4 +++
 tests/domaincapsdata/qemu_5.2.0.x86_64.xml    | 10 ++++++
 .../domaincapsdata/qemu_6.0.0-q35.x86_64.xml  | 10 ++++++
 .../domaincapsdata/qemu_6.0.0-tcg.x86_64.xml  | 10 ++++++
 .../qemu_6.0.0-virt.aarch64.xml               |  9 ++++++
 tests/domaincapsdata/qemu_6.0.0.aarch64.xml   |  9 ++++++
 tests/domaincapsdata/qemu_6.0.0.s390x.xml     |  4 +++
 tests/domaincapsdata/qemu_6.0.0.x86_64.xml    | 10 ++++++
 .../domaincapsdata/qemu_6.1.0-q35.x86_64.xml  | 10 ++++++
 .../domaincapsdata/qemu_6.1.0-tcg.x86_64.xml  | 10 ++++++
 tests/domaincapsdata/qemu_6.1.0.x86_64.xml    | 10 ++++++
 .../domaincapsdata/qemu_6.2.0-q35.x86_64.xml  | 10 ++++++
 .../domaincapsdata/qemu_6.2.0-tcg.x86_64.xml  | 10 ++++++
 .../qemu_6.2.0-virt.aarch64.xml               |  9 ++++++
 tests/domaincapsdata/qemu_6.2.0.aarch64.xml   |  9 ++++++
 tests/domaincapsdata/qemu_6.2.0.ppc64.xml     | 10 ++++++
 tests/domaincapsdata/qemu_6.2.0.x86_64.xml    | 10 ++++++
 tests/domaincapstest.c                        |  9 ++++++
 75 files changed, 661 insertions(+)

-- 
2.33.1





More information about the libvir-list mailing list