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

marcandre.lureau@redhat.com posted 4 patches 1 year, 5 months ago
Failed in applying to current master (apply log)
docs/formatdomain.rst                         | 18 +++++
src/conf/domain_conf.c                        | 28 +++++++
src/conf/domain_conf.h                        |  7 ++
src/conf/schemas/domaincommon.rng             | 20 +++++
src/qemu/qemu_tpm.c                           | 76 +++++++++++++++----
src/util/virtpm.c                             |  1 +
src/util/virtpm.h                             |  1 +
.../qemuxmlconfdata/tpm-emulator-tpm2-enc.xml |  1 +
tests/qemuxmlconfdata/tpm-emulator-tpm2.xml   |  1 +
9 files changed, 140 insertions(+), 13 deletions(-)
[PATCH v2 0/4] Add TPM emulator <source file=''/>
Posted by marcandre.lureau@redhat.com 1 year, 5 months 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://.

v2:
- add <source dir='..'/> support as well (Daniel)

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

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

 docs/formatdomain.rst                         | 18 +++++
 src/conf/domain_conf.c                        | 28 +++++++
 src/conf/domain_conf.h                        |  7 ++
 src/conf/schemas/domaincommon.rng             | 20 +++++
 src/qemu/qemu_tpm.c                           | 76 +++++++++++++++----
 src/util/virtpm.c                             |  1 +
 src/util/virtpm.h                             |  1 +
 .../qemuxmlconfdata/tpm-emulator-tpm2-enc.xml |  1 +
 tests/qemuxmlconfdata/tpm-emulator-tpm2.xml   |  1 +
 9 files changed, 140 insertions(+), 13 deletions(-)

-- 
2.45.2.827.g557ae147e6