[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 0/3] Implement Pysical Presence Interface for TP
From: |
Stefan Berger |
Subject: |
[Qemu-devel] [RFC PATCH 0/3] Implement Pysical Presence Interface for TPM 1.2 and 2 |
Date: |
Wed, 10 Jan 2018 13:35:15 -0500 |
The following patches implement the TPM Physical Presence Interface that
allows a user to set a command via ACPI (sysfs entry in Linux) that, upon
the next reboot, the firmware (BIOS, UEFI) looks for an acts upon by sending
sequences of commands to the TPM 1.2 or 2.
My first goal is to get the virtual memory device accepted since it extends
the TPM TIS (and TPM CRB) interface's internal data structure with another
256 bytes that would have to be written out when suspending the VM. So this
patch would have to come before we support VM with TPM suspend and resume.
The device supports 256 bytes at address 0xffff0000. This is the address that
EDK2 uses and that I have patches for for SeaBIOS support.
Regards,
Stefan
Stefan Berger (3):
tpm: Implement virtual memory device for TPM PPI
acpi: implement aml_lless_equal
acpi: Build TPM Physical Presence interface
hw/acpi/aml-build.c | 10 ++
hw/i386/acpi-build.c | 227 ++++++++++++++++++++++++++++++++++++++++++++
hw/tpm/Makefile.objs | 2 +-
hw/tpm/tpm_ppi.c | 79 +++++++++++++++
hw/tpm/tpm_ppi.h | 25 +++++
hw/tpm/tpm_tis.c | 5 +
include/hw/acpi/aml-build.h | 1 +
include/hw/acpi/tpm.h | 21 ++++
8 files changed, 369 insertions(+), 1 deletion(-)
create mode 100644 hw/tpm/tpm_ppi.c
create mode 100644 hw/tpm/tpm_ppi.h
--
2.5.5
- [Qemu-devel] [RFC PATCH 0/3] Implement Pysical Presence Interface for TPM 1.2 and 2,
Stefan Berger <=