From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkscn-00018o-Cf for qemu-devel@nongnu.org; Sun, 02 Nov 2014 05:43:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xksci-0006gq-BO for qemu-devel@nongnu.org; Sun, 02 Nov 2014 05:43:09 -0500 Received: from mga11.intel.com ([192.55.52.93]:27381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xksci-0006gk-66 for qemu-devel@nongnu.org; Sun, 02 Nov 2014 05:43:04 -0500 From: Quan Xu Date: Sun, 2 Nov 2014 01:39:17 -0500 Message-Id: <1414910357-27644-1-git-send-email-quan.xu@intel.com> Subject: [Qemu-devel] [PATCH 0/4] Qemu-Xen-vTPM: enable Xen stubdom vTPM for HVM virtual machine List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Quan Xu , stefano.stabellini@eu.citrix.com, armbru@redhat.com, lcapitulino@redhat.com, aliguori@amazon.com, pbonzini@redhat.com, xen-devel@lists.xen.org This patch series are only the Qemu part to enable Xen stubdom vTPM for HVM virtual machine. it will work w/ Xen patch series and seaBios patch series. .. Build it with --enable-tpm and --enable-xen options and link with Xen, or change QEMU_STUBDOM_VTPM compile option from 'n' to 'y' in /Config.mk, when the Qemu/ SeaBios patch series are merged. .. Run Xen virtual mahcine with below QEMU command line options: "-tpmdev xenstubdoms,id=xenvtpm0 -device tpm-tis,tpmdev=xenvtpm0" or Xen xl tool adds this options when virtual machine cfg includes: ** vtpm=["backend=vtpmN"] ** .. qemu-system-* --tpmdev help Supported TPM types (choose only one): passthrough Passthrough TPM backend driver xenstubdoms Xenstubdoms TPM backend driver Signed-off-by: Quan Xu configure | 13 ++++ hmp.c | 7 ++ hw/tpm/Makefile.objs | 1 + hw/tpm/tpm_xenstubdoms.c | 238 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/xen/Makefile.objs | 1 + hw/xen/xen_backend.c | 181 ++++++++++++++++++++++++++++++++++++++++++++++- hw/xen/xen_stubdom_vtpm.c | 323 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ include/hw/xen/xen_backend.h | 11 +++ include/hw/xen/xen_common.h | 7 ++ qapi-schema.json | 17 ++++- qemu-options.hx | 13 +++- tpm.c | 7 +- vl.c | 16 +++-- xen-hvm.c | 13 ++++ 14 files changed, 835 insertions(+), 13 deletions(-)