The patches in this pull request fix a bug in the initialization of a variable, adapt the cancel path used by the passthrough device to the sysfs path of more recent versions of the Linux kernel, and do some other cleanups preparing for support of migration. Finally, we add the CRB interface emulation, which is used with a TPM 2.
Stefan The following changes since commit 0f79bfe38a2cf0f43c7ea4959da7f8ebd7858f3d: Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-2.12-pull-request' into staging (2018-01-25 09:53:53 +0000) are available in the git repository at: git://github.com/stefanberger/qemu-tpm.git tags/pull-tpm-2018-01-26-1 for you to fetch changes up to b510b21e072a0a9218f37051c885e95824d06bea: tpm: add CRB device (2018-01-26 10:12:02 -0500) ---------------------------------------------------------------- Merge tpm 2018/01/26 v1 ---------------------------------------------------------------- Marc-André Lureau (4): tpm: lookup cancel path under tpm device class tpm: replace GThreadPool with AIO threadpool tpm: report backend request error tpm: add CRB device Stefan Berger (1): tpm: Set the flags of the CMD_INIT command to 0 backends/tpm.c | 59 +++++++++-------- default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/i386/acpi-build.c | 34 +++++++--- hw/tpm/Makefile.objs | 1 + hw/tpm/tpm_crb.c | 303 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/tpm/tpm_emulator.c | 25 +++----- hw/tpm/tpm_passthrough.c | 65 +++++++++++-------- hw/tpm/tpm_tis.c | 3 +- include/hw/acpi/tpm.h | 51 +++++++++++++++ include/sysemu/tpm.h | 5 +- include/sysemu/tpm_backend.h | 15 ++++- qapi/tpm.json | 5 +- tests/Makefile.include | 2 + tests/tpm-crb-test.c | 275 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 15 files changed, 760 insertions(+), 85 deletions(-) create mode 100644 hw/tpm/tpm_crb.c create mode 100644 tests/tpm-crb-test.c -- 2.5.5