From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Eduardo Habkost <ehabkost@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
stefanb@linux.vnet.ibm.com, Igor Mammedov <imammedo@redhat.com>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH v8 0/5] Add support for TPM Physical Presence interface
Date: Mon, 16 Jul 2018 19:41:07 +0300 [thread overview]
Message-ID: <20180716194039-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20180716125948.11666-1-marcandre.lureau@redhat.com>
On Mon, Jul 16, 2018 at 02:59:43PM +0200, Marc-André Lureau wrote:
> 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")
>
> The edk2 support is merged upstream.
ACPI bits:
Acked-by: Michael S. Tsirkin <mst@redhat.com>
> v8: ACPI code improvements
> - replace various aml_int() with variables
> - make op/op_flags common variables
> - replace the switch field indexing hack by a dynamic operation region
>
> v7:
> - relace RAM with RAM device ptr
> - a few ACPI code & comments improvements
> - add back proof-of-concept ACPI memory clear interface, handled in
> qemu (pass again WHLK TCG tests)
>
> Marc-André Lureau (2):
> tpm: add a "ppi" boolean property
> PoC: tpm: add 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 | 17 ++
> include/hw/compat.h | 10 +
> hw/i386/acpi-build.c | 456 +++++++++++++++++++++++++++++++++++++++++-
> hw/tpm/tpm_crb.c | 11 +
> hw/tpm/tpm_ppi.c | 56 ++++++
> hw/tpm/tpm_tis.c | 11 +
> docs/specs/tpm.txt | 101 ++++++++++
> hw/tpm/Makefile.objs | 1 +
> hw/tpm/trace-events | 3 +
> 10 files changed, 690 insertions(+), 2 deletions(-)
> create mode 100644 hw/tpm/tpm_ppi.h
> create mode 100644 hw/tpm/tpm_ppi.c
>
> --
> 2.18.0.129.ge3331758f1
prev parent reply other threads:[~2018-07-16 16:41 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-16 12:59 [Qemu-devel] [PATCH v8 0/5] Add support for TPM Physical Presence interface Marc-André Lureau
2018-07-16 12:59 ` [Qemu-devel] [PATCH v8 1/5] tpm: add a "ppi" boolean property Marc-André Lureau
2018-07-16 12:59 ` [Qemu-devel] [PATCH v8 2/5] tpm: implement virtual memory device for TPM PPI Marc-André Lureau
2018-07-16 14:44 ` Igor Mammedov
2018-07-16 14:56 ` Marc-André Lureau
2018-07-17 7:59 ` Igor Mammedov
2018-07-17 10:22 ` Marc-André Lureau
2018-07-17 14:34 ` Igor Mammedov
2018-07-17 10:03 ` Igor Mammedov
2018-07-17 10:39 ` Marc-André Lureau
2018-07-17 13:04 ` Laszlo Ersek
2018-07-17 14:36 ` Igor Mammedov
2018-07-17 14:46 ` Igor Mammedov
2018-07-16 12:59 ` [Qemu-devel] [PATCH v8 3/5] acpi: add fw_cfg file for TPM and PPI virtual memory device Marc-André Lureau
2018-07-16 14:46 ` Igor Mammedov
2018-07-18 8:16 ` Igor Mammedov
2018-07-16 12:59 ` [Qemu-devel] [PATCH v8 4/5] acpi: build TPM Physical Presence interface Marc-André Lureau
2018-07-17 12:16 ` Igor Mammedov
2018-07-16 12:59 ` [Qemu-devel] [PATCH v8 5/5] PoC: tpm: add ACPI memory clear interface Marc-André Lureau
2018-07-17 7:57 ` Igor Mammedov
2018-07-17 15:39 ` Marc-André Lureau
2018-07-23 11:08 ` Igor Mammedov
2018-07-23 11:16 ` Marc-André Lureau
2018-07-16 16:41 ` Michael S. Tsirkin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180716194039-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=stefanb@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).