All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Add test case for TPM over I2C with swtpm
@ 2026-04-29 12:17 Stefan Berger
  2026-04-29 12:17 ` [PATCH v2 1/6] tests: Move TPM I2C bus read/write functions to common files Stefan Berger
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Stefan Berger @ 2026-04-29 12:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: marcandre.lureau, armenon, Stefan Berger

This series adds a test case for TPM over I2C with external swtpm. It is
based on existing test cases for the TPM TIS and CRB. The first patches
refactor and fix some issues in exising code to prepare it for reuse by
the new test case.

   Stefan

v2: Addressed some issues pointed out by Arun

Stefan Berger (6):
  tests: Move TPM I2C bus read/write functions to common files
  tests: Have TPM I2C read/write functions take QTestState as first
    parameter
  tests: Convert string arrays to byte arrays
  tests: Rename id of tpmdev to tpm0
  tests: Check whether the I2C master flag is set
  tests: Add a TPM TIS I2C swtpm test

 tests/qtest/meson.build              |   7 +-
 tests/qtest/qtest_aspeed.c           |   9 +-
 tests/qtest/tpm-tests.c              |  34 +++--
 tests/qtest/tpm-tis-i2c-swtpm-test.c |  82 ++++++++++
 tests/qtest/tpm-tis-i2c-test.c       | 221 +++++++++++----------------
 tests/qtest/tpm-tis-i2c-util.c       | 102 +++++++++++++
 tests/qtest/tpm-tis-i2c-util.h       |  34 +++++
 tests/qtest/tpm-util.c               |  53 ++++---
 8 files changed, 373 insertions(+), 169 deletions(-)
 create mode 100644 tests/qtest/tpm-tis-i2c-swtpm-test.c
 create mode 100644 tests/qtest/tpm-tis-i2c-util.c
 create mode 100644 tests/qtest/tpm-tis-i2c-util.h

-- 
2.43.0



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-04-29 13:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29 12:17 [PATCH v2 0/6] Add test case for TPM over I2C with swtpm Stefan Berger
2026-04-29 12:17 ` [PATCH v2 1/6] tests: Move TPM I2C bus read/write functions to common files Stefan Berger
2026-04-29 12:17 ` [PATCH v2 2/6] tests: Have TPM I2C read/write functions take QTestState as first parameter Stefan Berger
2026-04-29 12:17 ` [PATCH v2 3/6] tests: Convert string arrays to byte arrays Stefan Berger
2026-04-29 13:12   ` Arun Menon
2026-04-29 12:17 ` [PATCH v2 4/6] tests: Rename id of tpmdev to tpm0 Stefan Berger
2026-04-29 12:17 ` [PATCH v2 5/6] tests: Check whether the I2C master flag is set Stefan Berger
2026-04-29 13:13   ` Arun Menon
2026-04-29 12:17 ` [PATCH v2 6/6] tests: Add a TPM TIS I2C swtpm test Stefan Berger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.