acpi: expose TPM/PPI configuration parameters to firmware via fw_cfg
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 14 Jan 2019 22:27:51 +0000 (02:27 +0400)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 18 Jan 2019 02:10:57 +0000 (21:10 -0500)
commit0fe246690315335a40a132f05cb6fdc7bfb9adca
tree34e9f189fb2c6a4da96533184fd88f6cd5681a78
parent3b97c01e9ccdfbd517a0fd631838d6252dbfa692
acpi: expose TPM/PPI configuration parameters to firmware via fw_cfg

To avoid having to hard code the base address of the PPI virtual
memory device we introduce a fw_cfg file etc/tpm/config that holds the
base address of the PPI device, the version of the PPI interface and
the version of the attached TPM.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
[ Marc-André: renamed to etc/tpm/config, made it static, document it ]
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/specs/tpm.txt
hw/i386/acpi-build.c
include/hw/acpi/tpm.h