From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1v3s-0003St-P8 for qemu-devel@nongnu.org; Mon, 08 Jun 2015 07:17:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1v3o-0007Ph-IK for qemu-devel@nongnu.org; Mon, 08 Jun 2015 07:17:48 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:59824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1v3o-0007PE-Ap for qemu-devel@nongnu.org; Mon, 08 Jun 2015 07:17:44 -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 ; Mon, 8 Jun 2015 05:17:42 -0600 Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 06C0F3E40030 for ; Mon, 8 Jun 2015 05:17:41 -0600 (MDT) Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t58BHe1S35127384 for ; Mon, 8 Jun 2015 04:17:40 -0700 Received: from d03av05.boulder.ibm.com (localhost [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t58BHeo4006575 for ; Mon, 8 Jun 2015 05:17:40 -0600 From: Stefan Berger Date: Mon, 8 Jun 2015 07:17:33 -0400 Message-Id: <1433762257-1752411-1-git-send-email-stefanb@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v4 0/4] Extend TPM support with a QEMU-external TPM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mst@redhat.com, qemu-devel@nongnu.org Cc: 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 ioctls. Stefan Berger (4): Provide support for the CUSE TPM Introduce condition to notify waiters of completed command Introduce condition in TPM backend for notification Add support for VM suspend/resume for TPM TIS hmp.c | 6 + hw/tpm/tpm_int.h | 4 + hw/tpm/tpm_ioctl.h | 209 ++++++++++++++++++++++ hw/tpm/tpm_passthrough.c | 409 +++++++++++++++++++++++++++++++++++++++++-- hw/tpm/tpm_tis.c | 151 +++++++++++++++- hw/tpm/tpm_tis.h | 2 + hw/tpm/tpm_util.c | 223 +++++++++++++++++++++++ hw/tpm/tpm_util.h | 7 + include/sysemu/tpm_backend.h | 12 ++ qapi-schema.json | 18 +- qemu-options.hx | 21 ++- qmp-commands.hx | 2 +- tpm.c | 11 +- 13 files changed, 1056 insertions(+), 19 deletions(-) create mode 100644 hw/tpm/tpm_ioctl.h -- 1.9.3