All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/4] Add support for TPM Physical Presence interface
@ 2018-05-15 12:14 Marc-André Lureau
  2018-05-15 12:14 ` [Qemu-devel] [PATCH v3 1/4] tpm: implement virtual memory device for TPM PPI Marc-André Lureau
                   ` (4 more replies)
  0 siblings, 5 replies; 40+ messages in thread
From: Marc-André Lureau @ 2018-05-15 12:14 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, stefanb, Marcel Apfelbaum, Eduardo Habkost,
	Igor Mammedov, Michael S. Tsirkin, Richard Henderson,
	Marc-André Lureau

Hi,

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 looks for and acts upon by
sending sequences of commands to the TPM.

A dedicated memory region is added to the TPM CRB & TIS devices, at
address/size 0xFED45000/0x400. A new "etc/tpm/config" fw_cfg entry
holds the location for that PPI region and some version details, to
allow for future flexibility.

With the associated edk2/ovmf firmware, the Windows HLK "PPI 1.3" test
now runs successfully.

It is based on previous work from Stefan Berger ("[PATCH v2 0/4]
Implement Physical Presence interface for TPM 1.2 and 2")

Git branches:
https://github.com/elmarco/qemu tpm-ppi
https://github.com/elmarco/edk2 tpm-ppi

Marc-André Lureau (1):
  tpm: add a fake ACPI memory clear interface

Stefan Berger (3):
  tpm: implement virtual memory device for TPM PPI
  acpi: add fw_cfg file for TPM and PPI virtual memory device
  acpi: build TPM Physical Presence interface

 hw/tpm/tpm_ppi.h      |  26 ++++
 include/hw/acpi/tpm.h |  30 ++++
 hw/i386/acpi-build.c  | 318 ++++++++++++++++++++++++++++++++++++++++++
 hw/tpm/tpm_crb.c      |   5 +
 hw/tpm/tpm_ppi.c      |  56 ++++++++
 hw/tpm/tpm_tis.c      |   5 +
 docs/specs/tpm.txt    |  20 +++
 hw/tpm/Makefile.objs  |   2 +-
 hw/tpm/trace-events   |   4 +
 9 files changed, 465 insertions(+), 1 deletion(-)
 create mode 100644 hw/tpm/tpm_ppi.h
 create mode 100644 hw/tpm/tpm_ppi.c

-- 
2.17.0.253.g3dd125b46d

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2018-06-26 15:22 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-15 12:14 [Qemu-devel] [PATCH v3 0/4] Add support for TPM Physical Presence interface Marc-André Lureau
2018-05-15 12:14 ` [Qemu-devel] [PATCH v3 1/4] tpm: implement virtual memory device for TPM PPI Marc-André Lureau
2018-05-15 14:19   ` Stefan Berger
2018-06-21  9:49   ` Igor Mammedov
2018-06-21 10:51     ` Marc-André Lureau
2018-06-21 13:59       ` Igor Mammedov
2018-05-15 12:14 ` [Qemu-devel] [PATCH v3 2/4] acpi: add fw_cfg file for TPM and PPI virtual memory device Marc-André Lureau
2018-06-21 10:00   ` Igor Mammedov
2018-06-21 10:10     ` Marc-André Lureau
2018-06-21 13:55       ` Igor Mammedov
2018-06-22  0:16       ` Laszlo Ersek
2018-06-25 15:20       ` Laszlo Ersek
2018-06-26 10:38         ` Marc-André Lureau
2018-06-26 10:54           ` Laszlo Ersek
2018-05-15 12:14 ` [Qemu-devel] [PATCH v3 3/4] acpi: build TPM Physical Presence interface Marc-André Lureau
2018-06-20 14:08   ` Michael S. Tsirkin
2018-06-20 14:35     ` Marc-André Lureau
2018-06-20 15:08       ` Laszlo Ersek
2018-06-20 15:31       ` Michael S. Tsirkin
2018-06-20 16:37       ` Stefan Berger
2018-06-21 12:54   ` Igor Mammedov
2018-06-21 13:21     ` Marc-André Lureau
2018-06-21 13:22       ` Marc-André Lureau
2018-06-21 14:13         ` Marc-André Lureau
2018-06-21 14:27           ` Igor Mammedov
2018-06-21 13:48       ` Stefan Berger
2018-06-21 14:23       ` Igor Mammedov
2018-06-21 17:10         ` Marc-André Lureau
2018-06-21 17:36           ` Stefan Berger
2018-06-22 13:40           ` Igor Mammedov
2018-05-15 12:14 ` [Qemu-devel] [PATCH v3 4/4] tpm: add a fake ACPI memory clear interface Marc-André Lureau
2018-06-21 13:02   ` Igor Mammedov
2018-06-21 13:24     ` Marc-André Lureau
2018-06-21 13:59       ` Stefan Berger
2018-06-21 14:33       ` Igor Mammedov
2018-06-26  9:22         ` Marc-André Lureau
2018-06-26 12:34           ` Igor Mammedov
2018-06-26 12:47             ` Laszlo Ersek
2018-06-26 15:22               ` Stefan Berger
2018-06-20 13:11 ` [Qemu-devel] [PATCH v3 0/4] Add support for TPM Physical Presence interface Marc-André Lureau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.