Those patches bring MMIO TPM TIS ACPI support in machvirt. The first patch moves the TPM2 ACPI table generation code in the generic code. Then the table is added if the TPM2 sysbus device is dynamically instantiated in machvirt. Also the TPM2 device object is described in the DSDT.
Many thanks to Ard for his support. Tested with LUKS partition automatic decryption. Best Regards Eric This series can be found at: https://github.com/eauger/qemu/tree/v5.0-tpm-acpi-v2 History: v1 -> v2: - move build_tpm2() in the generic code (Michael) - collect Stefan's R-b on 3/3 Eric Auger (3): acpi: Move build_tpm2() in the generic part arm/acpi: TPM2 ACPI table support arm/acpi: Add the TPM2.0 device under the DSDT include/hw/acpi/aml-build.h | 2 ++ include/sysemu/tpm.h | 2 ++ hw/acpi/aml-build.c | 31 ++++++++++++++++++++++++ hw/arm/virt-acpi-build.c | 47 +++++++++++++++++++++++++++++++++++++ hw/i386/acpi-build.c | 30 ----------------------- 5 files changed, 82 insertions(+), 30 deletions(-) -- 2.20.1