From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxLok-000755-GS for qemu-devel@nongnu.org; Tue, 26 May 2015 16:51:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxLoh-0007fJ-AO for qemu-devel@nongnu.org; Tue, 26 May 2015 16:51:18 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:49888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxLoh-0007ee-2z for qemu-devel@nongnu.org; Tue, 26 May 2015 16:51:15 -0400 Received: from /spool/local by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 26 May 2015 14:51:13 -0600 Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 9E7511FF0023 for ; Tue, 26 May 2015 14:42:21 -0600 (MDT) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t4QKpA1746006318 for ; Tue, 26 May 2015 13:51:10 -0700 Received: from d03av01.boulder.ibm.com (localhost [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t4QKp9Hn014126 for ; Tue, 26 May 2015 14:51:09 -0600 From: Stefan Berger Date: Tue, 26 May 2015 16:51:04 -0400 Message-Id: <1432673467-1033008-1-git-send-email-stefanb@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v4 0/3] tpm: Upgrade TPM TIS for support of a TPM 2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mst@redhat.com, qemu-devel@nongnu.org, imammedo@redhat.com Cc: quan.xu@intel.com, Stefan Berger After the previous upgrade of the TPM TIS to version 1.3, we now upgrade it to support a TPM 2 in the backend. Stefan Berger (3): Extend TPM TIS interface to support TPM 2 tpm: Probe for connected TPM 1.2 or TPM 2 TPM2 ACPI table support backends/tpm.c | 14 +++++ hw/i386/Makefile.objs | 2 +- hw/i386/acpi-build.c | 38 ++++++++++-- hw/i386/acpi-defs.h | 18 ++++++ hw/i386/ssdt-tpm-common.dsl | 36 ++++++++++++ hw/i386/ssdt-tpm.dsl | 16 +---- hw/i386/ssdt-tpm.hex.generated | 26 +++++++-- hw/i386/ssdt-tpm2.dsl | 29 +++++++++ hw/i386/ssdt-tpm2.hex.generated | 109 ++++++++++++++++++++++++++++++++++ hw/tpm/Makefile.objs | 2 +- hw/tpm/tpm_int.h | 7 +++ hw/tpm/tpm_passthrough.c | 65 +++++---------------- hw/tpm/tpm_tis.c | 119 ++++++++++++++++++++++++++++++++++--- hw/tpm/tpm_tis.h | 1 + hw/tpm/tpm_util.c | 126 ++++++++++++++++++++++++++++++++++++++++ hw/tpm/tpm_util.h | 28 +++++++++ include/hw/acpi/tpm.h | 5 ++ include/sysemu/tpm.h | 17 +++++- include/sysemu/tpm_backend.h | 23 ++++++++ 19 files changed, 594 insertions(+), 87 deletions(-) create mode 100644 hw/i386/ssdt-tpm-common.dsl create mode 100644 hw/i386/ssdt-tpm2.dsl create mode 100644 hw/i386/ssdt-tpm2.hex.generated create mode 100644 hw/tpm/tpm_util.c create mode 100644 hw/tpm/tpm_util.h -- 1.9.3