[PATCH 0/3] Add TPM emulator <source file=''/>

marcandre.lureau@redhat.com posted 3 patches 2 months, 3 weeks ago
There is a newer version of this series
docs/formatdomain.rst                       | 15 +++++
src/conf/domain_conf.c                      | 21 ++++++
src/conf/domain_conf.h                      |  6 ++
src/conf/schemas/domaincommon.rng           | 11 +++
src/qemu/qemu_tpm.c                         | 74 +++++++++++++++++----
src/util/virtpm.c                           |  1 +
src/util/virtpm.h                           |  1 +
tests/qemuxmlconfdata/tpm-emulator-tpm2.xml |  1 +
8 files changed, 117 insertions(+), 13 deletions(-)
[PATCH 0/3] Add TPM emulator <source file=''/>
Posted by marcandre.lureau@redhat.com 2 months, 3 weeks ago
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Hi,

When swtpm capabilities reports "nvram-backend-dir", it can accepts a single
file or block device where TPM state will be stored.

--tpmstate must be backend-uri=file://.

Let me know what you think of this approach of exposing this.

Related: https://issues.redhat.com/browse/CNV-35250

Marc-André Lureau (3):
  util: check swtpm nvram-backend-dir capability
  schema: add TPM emulator <source file='..'>
  qemu_tpm: handle file/block storage

 docs/formatdomain.rst                       | 15 +++++
 src/conf/domain_conf.c                      | 21 ++++++
 src/conf/domain_conf.h                      |  6 ++
 src/conf/schemas/domaincommon.rng           | 11 +++
 src/qemu/qemu_tpm.c                         | 74 +++++++++++++++++----
 src/util/virtpm.c                           |  1 +
 src/util/virtpm.h                           |  1 +
 tests/qemuxmlconfdata/tpm-emulator-tpm2.xml |  1 +
 8 files changed, 117 insertions(+), 13 deletions(-)

-- 
2.45.2.827.g557ae147e6