From: Kevin O'Connor <kevin@koconnor.net>
To: Stefan Berger <stefanb@linux.vnet.ibm.com>
Cc: Laszlo Ersek <lersek@redhat.com>,
marcandre.lureau@redhat.com, qemu-devel@nongnu.org,
mst@redhat.com, Igor Mammedov <imammedo@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 4/4] acpi: build TPM Physical Presence interface
Date: Wed, 14 Feb 2018 13:39:35 -0500 [thread overview]
Message-ID: <20180214183935.GA11088@morn.lan> (raw)
In-Reply-To: <ead467f1-ab61-6350-e0bf-66ce0cbb06a1@linux.vnet.ibm.com>
On Tue, Feb 13, 2018 at 03:29:20PM -0500, Stefan Berger wrote:
[...]
> In these 0x400 bytes we have 256 bytes that are used for configuration flags
> describing the supported opcode as you previously described. This array
> allows us to decouple the firmware implementation from the ACPI code and we
> need not hard code what is supported in the firmware inside the ACPI code
> (which would be difficult to do anyway since in QEMU we would not what
> firmware will be started and what PPI opcodes are support) and the ppi sysfs
> entries in Linux for example show exactly those PPI opcodes that are
> supported. The firmware needs to set those flags and the firmware knows what
> it supports.
>
> I hope we can settle that this device is the right path.
It seems that the primary purpose of the 0x400 virtual device is to
pass information from firmware to QEMU (specifically to pass the list
of supported PPI opcodes to the QEMU generated AML code). Passing
information between firmware and QEMU is not new territory, and fw_cfg
was specifically built to do this. I'd prefer to use fw_cfg if we
need to pass information between firmware and QEMU.
That said, I don't see why this list is needed - why not just
implement the same opcodes in both UEFI and SeaBIOS and be done with
it? The spec defines 22 actions, and most of these are permutations
of 4 basic features (Enable, Activate, Clear, SetOwnerInstall).
[...]
> I initially had PPI SeaBIOS code write into the TPM TIS device's memory into
> some custom addresses. I'd consider this a hack.
Well, sure, it could be considered a hack. But, it seems to me the
whole PPI spec is a bit of a hack. If elegance isn't an option,
settle for simplicity?
-Kevin
next prev parent reply other threads:[~2018-02-14 18:39 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-16 15:51 [Qemu-devel] [PATCH v2 0/4] Implement Physical Presence interface for TPM 1.2 and 2 Stefan Berger
2018-01-16 15:51 ` [Qemu-devel] [PATCH v2 1/4] tpm: implement virtual memory device for TPM PPI Stefan Berger
2018-01-16 15:51 ` [Qemu-devel] [PATCH v2 2/4] acpi: build QEMU table for PPI virtual memory device Stefan Berger
2018-01-16 16:35 ` Michael S. Tsirkin
2018-01-16 20:42 ` Laszlo Ersek
2018-01-16 21:20 ` Stefan Berger
2018-01-16 15:51 ` [Qemu-devel] [PATCH v2 3/4] acpi: implement aml_lless_equal Stefan Berger
2018-01-16 16:13 ` Michael S. Tsirkin
2018-01-16 15:51 ` [Qemu-devel] [PATCH v2 4/4] acpi: build TPM Physical Presence interface Stefan Berger
2018-02-09 20:19 ` Stefan Berger
2018-02-12 14:27 ` Igor Mammedov
2018-02-12 16:44 ` Stefan Berger
2018-02-12 17:52 ` Igor Mammedov
2018-02-12 18:45 ` Stefan Berger
2018-02-13 12:50 ` Igor Mammedov
2018-02-12 19:45 ` Kevin O'Connor
2018-02-12 20:17 ` Stefan Berger
2018-02-13 12:57 ` Igor Mammedov
2018-02-13 13:31 ` Laszlo Ersek
2018-02-13 14:17 ` Igor Mammedov
2018-02-13 15:39 ` Laszlo Ersek
2018-02-13 16:19 ` Igor Mammedov
2018-02-13 16:34 ` Laszlo Ersek
2018-02-12 20:46 ` Kevin O'Connor
2018-02-12 20:49 ` Stefan Berger
2018-02-13 16:16 ` Laszlo Ersek
2018-02-13 16:34 ` Igor Mammedov
2018-02-13 17:01 ` Laszlo Ersek
2018-02-13 19:37 ` Kevin O'Connor
2018-02-13 19:59 ` Laszlo Ersek
2018-02-13 20:29 ` Stefan Berger
2018-02-13 21:04 ` Laszlo Ersek
2018-02-13 21:32 ` Stefan Berger
2018-02-14 18:39 ` Kevin O'Connor [this message]
2018-02-15 11:52 ` 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=20180214183935.GA11088@morn.lan \
--to=kevin@koconnor.net \
--cc=imammedo@redhat.com \
--cc=lersek@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--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 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.