From: Quan Xu Subject: [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machine Date: Tue, 10 Mar 2015 08:16:03 -0400 Message-ID: <1425989764-2926-1-git-send-email-quan.xu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: kevin@koconnor.net Cc: stefanb@linux.vnet.ibm.com, xen-devel@lists.xen.org, qemu-devel@nongnu.org, Quan Xu , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org This patch series are only the SeaBios part to enable stubdom vTPM for HVM virtual machine. It will work with Qemu patch series and Xen patch series. ======================== *INTRODUCTION* ======================== The goal of virtual Trusted Platform Module (vTPM) is to provide a TPM functionality to virtual machines (Fedora, Ubuntu, Redhat, Windows .etc). This allows programs to interact with a TPM in a virtual machine the same way they interact with a TPM on the physical system. Each virtual machine gets its own unique, emulated, software TPM. Each major component of vTPM is implemented as a stubdom, providing secure separation guaranteed by the hypervisor. The vTPM stubdom is a Xen mini-OS domain that emulates a TPM for the virtual machine to use. It is a small wrapper around the Berlios TPM emulator. TPM commands are passed from mini-os TPM backend driver. Signed-off-by: Quan Xu Signed-off-by: Stefan Berger Quan Xu (1): SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machine Makefile | 2 +- src/post.c | 3 + src/tpm.c | 309 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/tpm.h | 141 ++++++++++++++++++++++++++++ 4 files changed, 454 insertions(+), 1 deletion(-) create mode 100644 src/tpm.c create mode 100644 src/tpm.h -- 1.8.1.2