From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Berger Subject: [RFC PATCH 0/4] Multi-instance vTPM driver Date: Thu, 14 Jan 2016 11:01:54 -0500 Message-ID: <1452787318-29610-1-git-send-email-stefanb@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Cc: dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Stefan Berger , dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org List-Id: tpmdd-devel@lists.sourceforge.net From: Stefan Berger The following series of patches implements a multi-instance vTPM driver that can dynamically create TPM 'server' and client device pairs. Using ioctl's on the provided /dev/vtpmx, a server and a client side vTPM device can be created. The server side offers a /dev/vtpms%d device and a TPM emulator must be started on it to listen for TPM commands that are written to /dev/vtpmc%d, which is created by the core TPM driver. The primary goal of this series of patches is enabling vTPM for containers and hooking them up to a (future) namespaced IMA. However, the driver can also be used for simulating a hardware TPM on the host. The last patch provides a test program for controlling device pairs. Stefan Stefan Berger (4): New flags for TPM chip avoiding filesystem registrations Allow to provide a name pattern of the device Implement driver for supporting multiple emulated TPMs A test program for vTPM device creation drivers/char/tpm/Kconfig | 10 + drivers/char/tpm/Makefile | 1 + drivers/char/tpm/tpm-chip.c | 42 ++- drivers/char/tpm/tpm-vtpm.c | 855 ++++++++++++++++++++++++++++++++++++++++++++ drivers/char/tpm/tpm-vtpm.h | 58 +++ drivers/char/tpm/tpm.h | 8 +- include/uapi/linux/Kbuild | 1 + include/uapi/linux/vtpm.h | 52 +++ vtpmctrl.c | 369 +++++++++++++++++++ 9 files changed, 1386 insertions(+), 10 deletions(-) create mode 100644 drivers/char/tpm/tpm-vtpm.c create mode 100644 drivers/char/tpm/tpm-vtpm.h create mode 100644 include/uapi/linux/vtpm.h create mode 100644 vtpmctrl.c -- 2.4.3 ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140