TPM2 ACPI table support
commit5cb18b3d7bff2a83275ee98af2a14eb9e21c93ab
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 26 May 2015 20:51:07 +0000 (26 16:51 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Jun 2015 12:18:54 +0000 (1 14:18 +0200)
tree57e9bea68329809b1caeba263351b3d550a8c911
parent56a3c24ffc11955ddc7bb21362ca8069a3fc8c55
TPM2 ACPI table support

Add a TPM2 ACPI table if a TPM 2 is used in the backend.
Also add an SSDT for the TPM 2.

Rename tpm_find() to tpm_get_version() and have this function
return the version of the TPM found, TPMVersion_Unspec if
no TPM is found. Use the version number to build version
specific ACPI tables.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/Makefile.objs
hw/i386/acpi-build.c
hw/i386/ssdt-tpm.dsl
hw/i386/ssdt-tpm.hex.generated
hw/i386/ssdt-tpm2.dsl [copied from hw/i386/ssdt-tpm.dsl with 60% similarity]
hw/i386/ssdt-tpm2.hex.generated [copied from hw/i386/ssdt-tpm.hex.generated with 77% similarity]
hw/tpm/tpm_tis.c
include/hw/acpi/acpi-defs.h
include/hw/acpi/tpm.h
include/sysemu/tpm.h