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

Stefan Berger posted 6 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260428130718.1325177-1-stefanb@linux.ibm.com
Maintainers: Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Cédric Le Goater" <clg@kaod.org>, Peter Maydell <peter.maydell@linaro.org>, Steven Lee <steven_lee@aspeedtech.com>, Troy Lee <leetroy@gmail.com>, Jamin Lin <jamin_lin@aspeedtech.com>, Kane Chen <kane_chen@aspeedtech.com>, Andrew Jeffery <andrew@codeconstruct.com.au>, Joel Stanley <joel@jms.id.au>, Stefan Berger <stefanb@linux.vnet.ibm.com>
There is a newer version of this series
tests/qtest/meson.build              |   7 +-
tests/qtest/qtest_aspeed.c           |   8 +-
tests/qtest/qtest_aspeed.h           |   2 +
tests/qtest/tpm-tests.c              |   8 +-
tests/qtest/tpm-tis-i2c-swtpm-test.c |  86 +++++++++++
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               |  18 +--
9 files changed, 338 insertions(+), 148 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
[PATCH 0/6] Add test case for TPM over I2C with swtpm
Posted by Stefan Berger 1 month ago
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

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: Set sizes for arrays of expected TPM responses and requests
  tests: Rename id of tpmdev to tpm0
  tests: Implement aspeed_i2c_restart to reenable selection of master
  tests: Add a TPM TIS I2C swtpm test

 tests/qtest/meson.build              |   7 +-
 tests/qtest/qtest_aspeed.c           |   8 +-
 tests/qtest/qtest_aspeed.h           |   2 +
 tests/qtest/tpm-tests.c              |   8 +-
 tests/qtest/tpm-tis-i2c-swtpm-test.c |  86 +++++++++++
 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               |  18 +--
 9 files changed, 338 insertions(+), 148 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