mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
tpm: allocate/map buffer for TPM Physical Presence interface
Implement a virtual memory device for the TPM Physical Presence interface. The memory is located at 0xFED45000 and used by ACPI to send messages to the firmware (BIOS) and by the firmware to provide parameters for each one of the supported codes. This interface should be used by all TPM devices on x86 and can be added by calling tpm_ppi_init_io(). Note: bios_linker cannot be used to allocate the PPI memory region, since the reserved memory should stay stable across reboots, and might be needed before the ACPI tables are installed. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Igor Mammedov <imammedo@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>
This commit is contained in:
parent
b6148757f9
commit
3b97c01e9c
6 changed files with 88 additions and 0 deletions
|
@ -188,4 +188,10 @@ REG32(CRB_DATA_BUFFER, 0x80)
|
|||
#define TPM2_START_METHOD_MMIO 6
|
||||
#define TPM2_START_METHOD_CRB 7
|
||||
|
||||
/*
|
||||
* Physical Presence Interface
|
||||
*/
|
||||
#define TPM_PPI_ADDR_SIZE 0x400
|
||||
#define TPM_PPI_ADDR_BASE 0xFED45000
|
||||
|
||||
#endif /* HW_ACPI_TPM_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue