Skip to content

Add test case for TPM over I2C with swtpm

Stefan Berger qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 2 repliesIn review
  2. v16 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tests: Move TPM I2C bus read/write functions to common filestests/qtest/meson.build tests/qtest/tpm-tis-i2c-test.c tests/qtest/tpm-tis-i2c-util.c +1 more+96 -500 replies
2/6tests: Have TPM I2C read/write functions take QTestState as first parametertests/qtest/tpm-tis-i2c-test.c tests/qtest/tpm-tis-i2c-util.c tests/qtest/tpm-tis-i2c-util.h+110 -1030 replies
3/6tests: Convert string arrays to byte arraystests/qtest/tpm-tests.c tests/qtest/tpm-util.c+49 -261 reply
4/6tests: Rename id of tpmdev to tpm0tests/qtest/tpm-tests.c tests/qtest/tpm-util.c+6 -60 replies
5/6tests: Check whether the I2C master flag is settests/qtest/qtest_aspeed.c+6 -31 reply
6/6tests: Add a TPM TIS I2C swtpm testtests/qtest/meson.build tests/qtest/tpm-tis-i2c-swtpm-test.c tests/qtest/tpm-tis-i2c-util.c +1 more+127 -20 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchArun Menon
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] Add test case for TPM over I2C with swtpm

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
Signature · 1 line
2.43.0