From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiVxW-0004Ab-6Q for qemu-devel@nongnu.org; Wed, 15 Apr 2015 18:39:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiVxR-0004YS-II for qemu-devel@nongnu.org; Wed, 15 Apr 2015 18:39:02 -0400 Received: from e7.ny.us.ibm.com ([32.97.182.137]:43972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiVxR-0004YE-DU for qemu-devel@nongnu.org; Wed, 15 Apr 2015 18:38:57 -0400 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 15 Apr 2015 18:38:57 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id A2D686E804A for ; Wed, 15 Apr 2015 18:30:42 -0400 (EDT) Received: from d01av05.pok.ibm.com (d01av05.pok.ibm.com [9.56.224.195]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t3FMcrCv58982444 for ; Wed, 15 Apr 2015 22:38:53 GMT Received: from d01av05.pok.ibm.com (localhost [127.0.0.1]) by d01av05.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t3FMcqfb005683 for ; Wed, 15 Apr 2015 18:38:53 -0400 From: Stefan Berger Date: Wed, 15 Apr 2015 18:38:43 -0400 Message-Id: <1429137528-1069064-1-git-send-email-stefanb@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/5] 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 Cc: safford@watson.ibm.com, Stefan Berger , quan.xu@intel.com, mst@redhat.com 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. http://www.seabios.org/pipermail/seabios/2015-March/008978.html Stefan Berger (5): Provide support for the CUSE TPM 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/acpi-tpm-core.dsl | 277 +++++++++++++++++++++++++++++ hw/i386/acpi-tpm2.dsl | 27 +++ hw/i386/q35-acpi-dsdt.dsl | 1 + hw/i386/ssdt-tpm.dsl | 12 +- hw/tpm/tpm_int.h | 4 + hw/tpm/tpm_ioctl.h | 178 +++++++++++++++++++ hw/tpm/tpm_passthrough.c | 410 +++++++++++++++++++++++++++++++++++++++++-- hw/tpm/tpm_tis.c | 152 +++++++++++++++- hw/tpm/tpm_tis.h | 2 + hw/tpm/tpm_util.c | 206 ++++++++++++++++++++++ hw/tpm/tpm_util.h | 7 + include/sysemu/tpm_backend.h | 12 ++ qapi-schema.json | 17 +- qemu-options.hx | 21 ++- qmp-commands.hx | 2 +- tpm.c | 11 +- 17 files changed, 1316 insertions(+), 29 deletions(-) create mode 100644 hw/i386/acpi-tpm-core.dsl create mode 100644 hw/i386/acpi-tpm2.dsl create mode 100644 hw/tpm/tpm_ioctl.h -- 1.9.3