From: Igor Mammedov <imammedo@redhat.com>
To: Stefan Berger <stefanb@linux.vnet.ibm.com>
Cc: Kevin O'Connor <kevin@koconnor.net>,
marcandre.lureau@redhat.com, lersek@redhat.com,
qemu-devel@nongnu.org, mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 4/4] acpi: build TPM Physical Presence interface
Date: Tue, 13 Feb 2018 13:57:39 +0100 [thread overview]
Message-ID: <20180213135739.3fd6fad6@redhat.com> (raw)
In-Reply-To: <5345fb74-02cf-9793-78d7-490e5e77ad27@linux.vnet.ibm.com>
On Mon, 12 Feb 2018 15:17:21 -0500
Stefan Berger <stefanb@linux.vnet.ibm.com> wrote:
> On 02/12/2018 02:45 PM, Kevin O'Connor wrote:
> > On Fri, Feb 09, 2018 at 03:19:31PM -0500, Stefan Berger wrote:
> >> I have played around with this patch and some modifications to EDK2. Though
> >> for EDK2 the question is whether to try to circumvent their current
> >> implementation that uses SMM or use SMM. With this patch so far I circumvent
> >> it, which is maybe not a good idea.
> >>
> >> The facts for EDK2's PPI:
> >>
> >> - from within the OS a PPI code is submitted to ACPI and ACPI enters SMM via
> >> an SMI and the PPI code is written into a UEFI variable. For this ACPI uses
> >> the memory are at 0xFFFF 0000 to pass parameters from the OS (via ACPI) to
> >> SMM. This is declared in ACPI with an OperationRegion() at that address.
> >> Once the machine is rebooted, UEFI reads the variable and finds the PPI code
> >> and reacts to it.
> > I'm a bit confused by this. The top 1M of the first 4G of ram is
> > generally mapped to the flash device on real machines. Indeed, this
> > is part of the mechanism used to boot an X86 machine - it starts
> > execution from flash at 0xfffffff0. This is true even on modern
> > machines.
> >
> > So, it seems strange that UEFI is pushing a code through a memory
> > device at 0xffff0000. I can't see how that would be portable. Are
> > you sure the memory write to 0xffff0000 is not just a trigger to
> > invoke the SMI?
>
> I base this on the code here:
>
> https://github.com/tianocore/edk2/blob/master/SecurityPkg/Tcg/Tcg2Smm/Tpm.asl#L81
>
> OperationRegion (TNVS, SystemMemory, 0xFFFF0000, 0xF0)
Is the goal to reuse EDK PPI impl. including ASL?
If it's so, then perhaps we only need to write address into QEMU
and let OVMF to discard PPI SSDT from QEMU.
> Stefan
>
> >
> > -Kevin
> >
>
>
next prev parent reply other threads:[~2018-02-13 12:58 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 [this message]
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
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=20180213135739.3fd6fad6@redhat.com \
--to=imammedo@redhat.com \
--cc=kevin@koconnor.net \
--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 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).