[PULL v1 00/16] Merge tpm 2026/06/01 v1

Stefan Berger posted 16 patches 6 days, 6 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260601215410.517009-1-stefanb@linux.ibm.com
Maintainers: Stefan Berger <stefanb@linux.vnet.ibm.com>, "Philippe Mathieu-Daudé" <philmd@mailo.com>, Zhao Liu <zhao1.liu@intel.com>, "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <anisinha@redhat.com>, Peter Xu <peterx@redhat.com>, 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>, "Marc-André Lureau" <marcandre.lureau@redhat.com>
backends/tpm/tpm_emulator.c          |  35 +++-
hw/core/machine.c                    |   2 +
hw/tpm/tpm_crb.c                     | 253 +++++++++++++++++++++++++--
include/hw/acpi/tpm.h                |   5 +-
include/migration/vmstate.h          |  10 ++
migration/vmstate-types.c            |  28 +++
tests/qtest/meson.build              |   7 +-
tests/qtest/qtest_aspeed.c           |   9 +-
tests/qtest/tpm-crb-swtpm-test.c     |  10 ++
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               | 162 +++++++++++++----
tests/qtest/tpm-util.h               |   5 +
ui/vdagent.c                         |  13 +-
17 files changed, 793 insertions(+), 219 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
[PULL v1 00/16] Merge tpm 2026/06/01 v1
Posted by Stefan Berger 6 days, 6 hours ago
The following changes since commit 5611a9268dae7b7ff99d478ed134052a9fc7e9f7:

  Merge tag 'pull-9p-20260601' of https://github.com/cschoenebeck/qemu into staging (2026-06-01 08:43:53 -0400)

are available in the Git repository at:

  https://github.com/stefanberger/qemu-tpm.git tags/pull-tpm-2026-06-01-1

for you to fetch changes up to f0602ce389ccda0e8df35ccaec3c1024478a0b10:

  tpm_emulator: Disconnect if response exceeds negotiated buffer size (2026-06-01 19:44:39 +0000)

----------------------------------------------------------------

This series of patches

- Improves the buffer handling in the TPM emulator backend
- Implements chunking support for the TPM CRB device
- Adds support for saving & loading of VMSTATE_GBYTEARRAY 
- Adds a swtpm test for the TPM I2C device

----------------------------------------------------------------

Arun Menon (8):
  migration/vmstate: Add VMState support for GByteArray
  ui/vdagent: Use VMSTATE_GBYTEARRAY to safely migrate outbuf
  hw/tpm: Add TPM CRB chunking fields
  hw/tpm: Refactor CRB_CTRL_START register access
  hw/tpm: Add internal buffer state for chunking
  hw/tpm: Implement TPM CRB chunking logic
  test/qtest: Add test for tpm crb chunking
  hw/tpm: Add support for VM migration with TPM CRB chunking

Stefan Berger (8):
  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
  tpm_emulator: Reject a buffer size different than what was requested
  tpm_emulator: Disconnect if response exceeds negotiated buffer size

 backends/tpm/tpm_emulator.c          |  35 +++-
 hw/core/machine.c                    |   2 +
 hw/tpm/tpm_crb.c                     | 253 +++++++++++++++++++++++++--
 include/hw/acpi/tpm.h                |   5 +-
 include/migration/vmstate.h          |  10 ++
 migration/vmstate-types.c            |  28 +++
 tests/qtest/meson.build              |   7 +-
 tests/qtest/qtest_aspeed.c           |   9 +-
 tests/qtest/tpm-crb-swtpm-test.c     |  10 ++
 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               | 162 +++++++++++++----
 tests/qtest/tpm-util.h               |   5 +
 ui/vdagent.c                         |  13 +-
 17 files changed, 793 insertions(+), 219 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.54.0
Re: [PULL v1 00/16] Merge tpm 2026/06/01 v1
Posted by Stefan Hajnoczi 5 days, 11 hours ago
Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/11.1 for any user-visible changes.