Received: from eggs.gnu.org ([2001:4830:134:3::10]:44958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG6yx-0003LY-LC for qemu-devel@nongnu.org; Mon, 04 Jan 2016 10:23:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aG6ys-0007DB-LT for qemu-devel@nongnu.org; Mon, 04 Jan 2016 10:23:39 -0500 Received: from e35.co.us.ibm.com ([32.97.110.153]:47564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG6ys-0007Cv-Dp for qemu-devel@nongnu.org; Mon, 04 Jan 2016 10:23:34 -0500 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 4 Jan 2016 08:23:33 -0700 Received: from b01cxnp23033.gho.pok.ibm.com (b01cxnp23033.gho.pok.ibm.com [9.57.198.28]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 736191FF0046 for ; Mon, 4 Jan 2016 08:11:40 -0700 (MST) Received: from d01av05.pok.ibm.com (d01av05.pok.ibm.com [9.56.224.195]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u04FNTGW29163574 for ; Mon, 4 Jan 2016 15:23:29 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 u04FJSJl002477 for ; Mon, 4 Jan 2016 10:19:31 -0500 From: Stefan Berger Date: Mon, 4 Jan 2016 10:23:18 -0500 Message-Id: <1451921002-8263-1-git-send-email-stefanb@us.ibm.com> Subject: [Qemu-devel] [PATCH v5 0/4] 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: stefanb@us.ibm.com, mst@redhat.com, jb613w@att.com, quan.xu@intel.com, silviu.vlasceanu@gmail.com, hagen.lauer@huawei.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 ioctls. This series of patches applies to 38a762fe. 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 | 215 +++++++++++++++++++++++ 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, 1062 insertions(+), 19 deletions(-) create mode 100644 hw/tpm/tpm_ioctl.h -- 2.4.3