[Qemu-devel] [RFC PATCH 0/3] Implement Pysical Presence Interface for TPM 1.2 and 2

Stefan Berger posted 3 patches 6 years, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1515609318-1897-1-git-send-email-stefanb@linux.vnet.ibm.com
Test checkpatch passed
Test docker passed
Test ppc passed
Test s390x passed
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
[Qemu-devel] [RFC PATCH 0/3] Implement Pysical Presence Interface for TPM 1.2 and 2
Posted by Stefan Berger 6 years, 3 months ago
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