From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.120]) by mx.groups.io with SMTP id smtpd.web09.6049.1581599551173339481 for ; Thu, 13 Feb 2020 05:12:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Myk1NfHL; spf=pass (domain: redhat.com, ip: 207.211.31.120, mailfrom: marcandre.lureau@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581599550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FaDNkAkGMje3NX8rnu6fKedEcCfXKhSjAJoJZIvhdEM=; b=Myk1NfHLvlBmvL5cvGNLgWT8tukXydgruM2rVJli3RqMab8T5HkTbGlGQeG26MOYclBWZw 5UaxZA9MHbai5us3naE12jiaFBFfoecxvYX6xehUa05no8dHh8yAXWs4vyb7JIWmYgpEf0 GEGkpjDHOTRx+DkGzEuSVdA29OoW44w= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-149-0JgN3EMFPGCnlToZ09p9iw-1; Thu, 13 Feb 2020 08:12:28 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BCBD5800D41; Thu, 13 Feb 2020 13:12:26 +0000 (UTC) Received: from localhost (ovpn-112-66.ams2.redhat.com [10.36.112.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 287905DA83; Thu, 13 Feb 2020 13:12:22 +0000 (UTC) From: marcandre.lureau@redhat.com To: edk2-devel@lists.01.org, devel@edk2.groups.io Cc: stefanb@linux.ibm.com, lersek@redhat.com, simon.hardy@itdev.co.uk, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH v2 0/3] Ovmf: enable TPM 1.2 Date: Thu, 13 Feb 2020 14:12:19 +0100 Message-Id: <20200213131222.157700-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: 0JgN3EMFPGCnlToZ09p9iw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Marc-Andr=C3=A9 Lureau Hi, The following patches add basic TPM 1.2 support for Ovmf/QEMU. I tested successfully Win10 with TIS/TPM 1.2 & CRB/TPM 2.0 passthrough, and emulated CRB/TPM 2.0. (fwiw, I haven't tried to enable TPM_CONFIG_ENABLE) Marc-Andr=C3=A9 Lureau (3): Ovmf: rename TPM2 config prefix to TPM SecurityPkg: export Tpm12GetPtpInterfaceType() Ovmf: enable TPM 1.2 support OvmfPkg/OvmfPkgIa32.dsc | 39 +++++++++++++------ OvmfPkg/OvmfPkgIa32.fdf | 10 +++-- OvmfPkg/OvmfPkgIa32X64.dsc | 39 +++++++++++++------ OvmfPkg/OvmfPkgIa32X64.fdf | 10 +++-- OvmfPkg/OvmfPkgX64.dsc | 39 +++++++++++++------ OvmfPkg/OvmfPkgX64.fdf | 10 +++-- OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf | 3 ++ OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPeim.c | 17 +++++++- SecurityPkg/Include/Library/Tpm12DeviceLib.h | 13 +++++++ .../Library/Tpm12DeviceLibDTpm/Tpm12Tis.c | 17 ++++---- 10 files changed, 141 insertions(+), 56 deletions(-) --=20 2.25.0.rc2.1.g09a9a1a997