From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqkw2-0003DQ-NQ for qemu-devel@nongnu.org; Fri, 08 May 2015 12:15:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yqkvz-0002TE-EY for qemu-devel@nongnu.org; Fri, 08 May 2015 12:15:34 -0400 Received: from e34.co.us.ibm.com ([32.97.110.152]:57131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqkvy-0002Sz-C7 for qemu-devel@nongnu.org; Fri, 08 May 2015 12:15:30 -0400 Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 8 May 2015 10:15:29 -0600 Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 50D461FF0049 for ; Fri, 8 May 2015 10:06:37 -0600 (MDT) Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t48GFQmg26148990 for ; Fri, 8 May 2015 09:15:26 -0700 Received: from d03av03.boulder.ibm.com (localhost [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t48GFPQZ010228 for ; Fri, 8 May 2015 10:15:26 -0600 From: Stefan Berger Date: Fri, 8 May 2015 12:15:14 -0400 Message-Id: <1431101720-701152-1-git-send-email-stefanb@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v2 0/6] Extend TPM support with a QEMU-external TPM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, mst@redhat.com Cc: imammedo@redhat.com, kevin@koconnor.net, stefanb@us.ibm.com, quan.xu@intel.com, Stefan Berger The following series of patches extends TPM support with an external TPM that offers a Linux CUSE (character device in userspace) interface. This TPM lets each VM access its own private vTPM. The CUSE TPM supports suspend/resume and migration. Much out-of-band functionality necessary to control the CUSE TPM is implemented using ioctl's. The series extends the TPM support so far that most functionality of TPM support on a physical platform is now available to each x86 VM, this includes the Physical Presence Interface support that has its counter-part in the SeaBIOS and is implemented using ACPI. Stefan Berger (6): Provide support for the CUSE TPM Introduce RAM location in vendor specific area in TIS Support Physical Presence Interface Spec Introduce condition to notifiy waiters of completed command Introduce condition in TPM backend for notification Add support for VM suspend/resume for TPM TIS hmp.c | 6 + hw/i386/ssdt-tpm.dsl | 189 +++++++++++++++++++ hw/tpm/tpm_int.h | 4 + hw/tpm/tpm_ioctl.h | 178 ++++++++++++++++++ hw/tpm/tpm_passthrough.c | 423 ++++++++++++++++++++++++++++++++++++++++++- hw/tpm/tpm_tis.c | 180 +++++++++++++++++- hw/tpm/tpm_tis.h | 4 + hw/tpm/tpm_util.c | 206 +++++++++++++++++++++ hw/tpm/tpm_util.h | 7 + include/hw/acpi/tpm.h | 20 ++ include/sysemu/tpm_backend.h | 12 ++ qapi-schema.json | 17 +- qemu-options.hx | 21 ++- qmp-commands.hx | 2 +- tpm.c | 11 +- 15 files changed, 1262 insertions(+), 18 deletions(-) create mode 100644 hw/tpm/tpm_ioctl.h -- 1.9.3