[PULL 0/7] Merge tpm 2023/04/20 v1

Stefan Berger posted 7 patches 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230420123247.226312-1-stefanb@linux.ibm.com
Maintainers: Stefan Berger <stefanb@linux.vnet.ibm.com>, Peter Maydell <peter.maydell@linaro.org>, "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <ani@anisinha.ca>, "Cédric Le Goater" <clg@kaod.org>, Andrew Jeffery <andrew@aj.id.au>, Joel Stanley <joel@jms.id.au>, Cleber Rosa <crosa@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Wainer dos Santos Moschetta <wainersm@redhat.com>, Beraldo Leal <bleal@redhat.com>, Thomas Huth <thuth@redhat.com>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
docs/specs/tpm.rst                      |  21 +
hw/arm/Kconfig                          |   1 +
hw/tpm/Kconfig                          |   7 +
hw/tpm/meson.build                      |   1 +
hw/tpm/tpm_tis.h                        |   3 +
hw/tpm/tpm_tis_common.c                 |  36 +-
hw/tpm/tpm_tis_i2c.c                    | 571 ++++++++++++++++++++
hw/tpm/trace-events                     |   6 +
include/hw/acpi/tpm.h                   |  41 ++
include/hw/i2c/aspeed_i2c.h             |   7 +
include/sysemu/tpm.h                    |   3 +
tests/avocado/machine_aspeed.py         |  42 +-
tests/qtest/meson.build                 |   3 +
tests/qtest/qtest_aspeed.c              | 117 +++++
tests/qtest/qtest_aspeed.h              |  41 ++
tests/qtest/tpm-crb-swtpm-test.c        |   3 -
tests/qtest/tpm-crb-test.c              |   3 -
tests/qtest/tpm-tis-device-swtpm-test.c |   5 +-
tests/qtest/tpm-tis-i2c-test.c          | 663 ++++++++++++++++++++++++
tests/qtest/tpm-tis-swtpm-test.c        |   5 +-
tests/qtest/tpm-tis-util.c              |  47 +-
tests/qtest/tpm-tis-util.h              |   4 +
tests/qtest/tpm-util.c                  |  45 --
tests/qtest/tpm-util.h                  |   3 -
24 files changed, 1609 insertions(+), 69 deletions(-)
create mode 100644 hw/tpm/tpm_tis_i2c.c
create mode 100644 tests/qtest/qtest_aspeed.c
create mode 100644 tests/qtest/qtest_aspeed.h
create mode 100644 tests/qtest/tpm-tis-i2c-test.c
[PULL 0/7] Merge tpm 2023/04/20 v1
Posted by Stefan Berger 1 year ago
Hello!

  This series provides TPM I2C device model support along with test cases.

Regards,
   Stefan

The following changes since commit 2d82c32b2ceaca3dc3da5e36e10976f34bfcb598:

  Open 8.1 development tree (2023-04-20 10:05:25 +0100)

are available in the Git repository at:

  https://github.com/stefanberger/qemu-tpm.git tags/pull-tpm-2023-04-20-1

for you to fetch changes up to 9d81aa3c0fe7480d722517f69e1bcb4aeaaf859c:

  qtest: Add a test case for TPM TIS I2C connected to Aspeed I2C controller (2023-04-20 08:17:15 -0400)


Joel Stanley (1):
  tests/avocado/aspeed: Add TPM TIS I2C test

Ninad Palsule (3):
  docs: Add support for TPM devices over I2C bus
  tpm: Extend common APIs to support TPM TIS I2C
  tpm: Add support for TPM device over I2C bus

Stefan Berger (3):
  qtest: Add functions for accessing devices on Aspeed I2C controller
  qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it
  qtest: Add a test case for TPM TIS I2C connected to Aspeed I2C
    controller

 docs/specs/tpm.rst                      |  21 +
 hw/arm/Kconfig                          |   1 +
 hw/tpm/Kconfig                          |   7 +
 hw/tpm/meson.build                      |   1 +
 hw/tpm/tpm_tis.h                        |   3 +
 hw/tpm/tpm_tis_common.c                 |  36 +-
 hw/tpm/tpm_tis_i2c.c                    | 571 ++++++++++++++++++++
 hw/tpm/trace-events                     |   6 +
 include/hw/acpi/tpm.h                   |  41 ++
 include/hw/i2c/aspeed_i2c.h             |   7 +
 include/sysemu/tpm.h                    |   3 +
 tests/avocado/machine_aspeed.py         |  42 +-
 tests/qtest/meson.build                 |   3 +
 tests/qtest/qtest_aspeed.c              | 117 +++++
 tests/qtest/qtest_aspeed.h              |  41 ++
 tests/qtest/tpm-crb-swtpm-test.c        |   3 -
 tests/qtest/tpm-crb-test.c              |   3 -
 tests/qtest/tpm-tis-device-swtpm-test.c |   5 +-
 tests/qtest/tpm-tis-i2c-test.c          | 663 ++++++++++++++++++++++++
 tests/qtest/tpm-tis-swtpm-test.c        |   5 +-
 tests/qtest/tpm-tis-util.c              |  47 +-
 tests/qtest/tpm-tis-util.h              |   4 +
 tests/qtest/tpm-util.c                  |  45 --
 tests/qtest/tpm-util.h                  |   3 -
 24 files changed, 1609 insertions(+), 69 deletions(-)
 create mode 100644 hw/tpm/tpm_tis_i2c.c
 create mode 100644 tests/qtest/qtest_aspeed.c
 create mode 100644 tests/qtest/qtest_aspeed.h
 create mode 100644 tests/qtest/tpm-tis-i2c-test.c

-- 
2.39.1
Re: [PULL 0/7] Merge tpm 2023/04/20 v1
Posted by Richard Henderson 1 year ago
On 4/20/23 13:32, Stefan Berger wrote:
> Hello!
> 
>    This series provides TPM I2C device model support along with test cases.
> 
> Regards,
>     Stefan
> 
> The following changes since commit 2d82c32b2ceaca3dc3da5e36e10976f34bfcb598:
> 
>    Open 8.1 development tree (2023-04-20 10:05:25 +0100)
> 
> are available in the Git repository at:
> 
>    https://github.com/stefanberger/qemu-tpm.git  tags/pull-tpm-2023-04-20-1
> 
> for you to fetch changes up to 9d81aa3c0fe7480d722517f69e1bcb4aeaaf859c:
> 
>    qtest: Add a test case for TPM TIS I2C connected to Aspeed I2C controller (2023-04-20 08:17:15 -0400)
> 
> 
> Joel Stanley (1):
>    tests/avocado/aspeed: Add TPM TIS I2C test
> 
> Ninad Palsule (3):
>    docs: Add support for TPM devices over I2C bus
>    tpm: Extend common APIs to support TPM TIS I2C
>    tpm: Add support for TPM device over I2C bus
> 
> Stefan Berger (3):
>    qtest: Add functions for accessing devices on Aspeed I2C controller
>    qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it
>    qtest: Add a test case for TPM TIS I2C connected to Aspeed I2C
>      controller

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/8.1 as appropriate.


r~