From: Stefan Berger <stefanb@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: mst@redhat.com, stefanb@linux.vnet.ibm.com, kevin@koconnor.net,
marcandre.lureau@redhat.com
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 [thread overview]
Message-ID: <1515609318-1897-1-git-send-email-stefanb@linux.vnet.ibm.com> (raw)
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
next reply other threads:[~2018-01-10 18:35 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-10 18:35 Stefan Berger [this message]
2018-01-10 18:35 ` [Qemu-devel] [RFC PATCH 1/3] tpm: Implement virtual memory device for TPM PPI Stefan Berger
2018-01-12 14:55 ` Marc-André Lureau
2018-01-12 16:29 ` Eric Blake
2018-01-12 17:24 ` Stefan Berger
2018-01-12 18:23 ` Stefan Berger
2018-01-15 14:49 ` Stefan Berger
2018-01-10 18:35 ` [Qemu-devel] [RFC PATCH 2/3] acpi: implement aml_lless_equal Stefan Berger
2018-01-12 15:17 ` Marc-André Lureau
2018-01-12 19:42 ` Stefan Berger
2018-01-15 14:31 ` Igor Mammedov
2018-01-10 18:35 ` [Qemu-devel] [RFC PATCH 3/3] acpi: Build TPM Physical Presence interface Stefan Berger
2018-01-10 18:49 ` Stefan Berger
2018-01-12 16:07 ` Marc-André Lureau
2018-01-12 17:00 ` Stefan Berger
2018-01-12 20:16 ` Stefan Berger
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=1515609318-1897-1-git-send-email-stefanb@linux.vnet.ibm.com \
--to=stefanb@linux.vnet.ibm.com \
--cc=kevin@koconnor.net \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).