Received: from eggs.gnu.org ([2001:4830:134:3::10]:51460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5KfP-00016M-L1 for qemu-devel@nongnu.org; Thu, 19 Oct 2017 19:56:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5KfK-00023e-PV for qemu-devel@nongnu.org; Thu, 19 Oct 2017 19:55:59 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37410 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e5KfK-00022B-Jn for qemu-devel@nongnu.org; Thu, 19 Oct 2017 19:55:54 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v9JNsMrC045897 for ; Thu, 19 Oct 2017 19:55:46 -0400 Received: from e19.ny.us.ibm.com (e19.ny.us.ibm.com [129.33.205.209]) by mx0a-001b2d01.pphosted.com with ESMTP id 2dq5fhhfpe-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 19 Oct 2017 19:55:45 -0400 Received: from localhost by e19.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 19 Oct 2017 19:55:45 -0400 References: <20171009225623.29232-1-marcandre.lureau@redhat.com> <523bf8e7-0be0-0db9-83da-4e7d7449562f@linux.vnet.ibm.com> <969297048.30042590.1508423615378.JavaMail.zimbra@redhat.com> <6b6eb9ff-b9de-7480-3f0d-ee2e7b5ab3b1@linux.vnet.ibm.com> <1042799717.30087374.1508432452336.JavaMail.zimbra@redhat.com> From: Stefan Berger Date: Thu, 19 Oct 2017 19:55:43 -0400 MIME-Version: 1.0 In-Reply-To: <1042799717.30087374.1508432452336.JavaMail.zimbra@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 00/42] TPM: code cleanup & CRB device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= Cc: amarnath valluri , qemu-devel@nongnu.org On 10/19/2017 01:00 PM, Marc-Andr=C3=A9 Lureau wrote: > Hi > > ----- Original Message ----- >> On 10/19/2017 10:44 AM, Stefan Berger wrote: >>> On 10/19/2017 10:33 AM, Marc-Andr=C3=A9 Lureau wrote: >>>> Hi Stefan >>>> >>>> ----- Original Message ----- >>>>> On 10/09/2017 06:55 PM, Marc-Andr=C3=A9 Lureau wrote: >>>>>> Hi, >>>>>> >>>>>> I accumulated a series of patch doing some TPM code cleanup while >>>>>> doing review. I removed some dead code, simplified other parts, an= d >>>>>> tried to isolate implementation of the backend and frontend by usi= ng a >>>>>> new TPMIf interface. I solved a few issues, and added some FIXME f= or >>>>>> what should be tackled. Finally, I implemented a simple CRB devic= e >>>>>> (tpm 2.0) that is work in progress for now - it works fine with >>>>>> passthrough, but swtpm/libtpms with win10 has some issues that nee= d >>>>>> more investigations. >>>>>> >>>>>> seabios CRB support is required for TPM 2.0 & emulation >>>>>> (https://mail.coreboot.org/pipermail/seabios/2017-October/011839.h= tml) >>>>>> >>>>>> Comments/review welcome! >>>>> Are you going to post a v2 soon? >>>> I was wondering if you would take the patches that you already >>>> reviewed for the next pull request. That way v2 would be smaller. >>> I'll take them up to 21/42. >> Tested them and it seems to work fine. I'll post later today. >> >> Did you have any more luck with win10 and tpm2 ? > I haven't had time so far to investigate further. > > The summary was that Windows refuses to talk with a TPM2/TIS device (it= doesn't even shows up in device list), while TPM2/CRB is being recognize= d and communicated with. However, there are some failure with swtpm/libtp= ms that are unclear, and will require more verbosity in libtpms. I plan t= o resume this effort in a few weeks. TPM1.2 + TIS seems good. TPM 2 + CRB seems to have a problem with a key handle 0x81 00 00 01. Stefan > Thanks >