From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW0Yz-0003oS-DS for qemu-devel@nongnu.org; Thu, 21 Jun 2018 10:27:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fW0Yv-0007xN-Di for qemu-devel@nongnu.org; Thu, 21 Jun 2018 10:27:53 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36962 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fW0Yv-0007xE-8m for qemu-devel@nongnu.org; Thu, 21 Jun 2018 10:27:49 -0400 Date: Thu, 21 Jun 2018 16:27:46 +0200 From: Igor Mammedov Message-ID: <20180621162746.16de966a@redhat.com> In-Reply-To: References: <20180515121433.6112-1-marcandre.lureau@redhat.com> <20180515121433.6112-4-marcandre.lureau@redhat.com> <20180621145405.197d5106@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 3/4] acpi: build TPM Physical Presence interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?TWFyYy1BbmRyw6k=?= Lureau Cc: Eduardo Habkost , Stefan Berger , "Michael S. Tsirkin" , QEMU , Paolo Bonzini , Richard Henderson On Thu, 21 Jun 2018 16:13:32 +0200 Marc-Andr=C3=A9 Lureau wrote: > Hi >=20 > On Thu, Jun 21, 2018 at 3:22 PM, Marc-Andr=C3=A9 Lureau > wrote: > > Hi > > > > On Thu, Jun 21, 2018 at 3:21 PM, Marc-Andr=C3=A9 Lureau > > wrote: > > =20 > >>>> + method =3D aml_method("TPFN", 1, AML_SERIALIZED); =20 > >>> not quite sure how this method (supposed to ) work(s), > >>> it could use nice comment explaining mechanics. > >>> =20 > >> > >> Windows doesn't like DerefOf (FUNC [N]), it returned wrong values. It > >> took me a while to figure this out. My laptop TPM ACPI table uses the > >> same trick, so I assume this is a Windows acpi bug/limitation. Instead > >> we use a function that returns the corresponding field. =20 > > > > Sorry, I am wrong, my laptop doesn't use such table. I don't know > > where I saw someone using the same trick though.. =20 >=20 > fwiw, I also asked on OSR list for help but got no answer: > http://www.osronline.com/showThread.CFM?link=3D288617 it is/might be fine if there is a workaround to make Windows work, we should mention it in comment though (including windows versions where it doesn't work) so in future someone else (including me and you) won't break it by accident. >=20 >=20 >=20 >=20 >=20