From: "fan he" Subject: tpm front-end problem Date: Thu, 3 Jul 2008 10:43:58 +0800 Message-ID: <5741ebef0807021943i64623cdaia83a415fe06b2c6@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0597711702==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0597711702== Content-Type: multipart/alternative; boundary="----=_Part_8101_6824862.1215053038508" ------=_Part_8101_6824862.1215053038508 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello I install 2.6.18-93.el5(contained xen3.1.2 and tpmback) which download from redhat.com to be my Dom0 and install vtpm_manager from a xen3.1.3 source packet, they work together successfully. However there is no tpm front-end in 2.6.18-93.el5 so i manually add all the tpm related source files from xen3.1.3 packet, Makefile and Kconfig also. Some errors occur after make the kernel, so i edit the evtchn.c located in /driver/xen/core/ and make the kernel with no error. I start DomU with vtpm configuration, run vtpm_manager in Dom0, i fail to add a tpm0 device after modprobe tpm_xenu. There is no error and no responce from the vtpm_manager. So strange. Can anyone give me some suggestion about a workable combination of dom0 and domu with tpm front and back. My screen shows as follow: [root@localhost ~]# vtpm_managerd INFO[VTPM]: Starting VTPM. INFO[TCS]: Constructing new TCS: INFO[TCS]: Calling TCS_OpenContext: INFO[VTSP]: OIAP. INFO[VTSP]: Loading Key into TPM. INFO[VTSP]: Unbinding 256 bytes of data. INFO[VTPM]: Loaded saved state (dmis = 0). INFO[VTSP]: Loading Key into TPM. INFO[VTPM]: Creating new DMI instance 0 attached. INFO[TCS]: Calling TCS_OpenContext: INFO[VTPM]: [Backend Listener]: Backend Listener waiting for messages. INFO[VTPM]: [Hotplug Listener]: Hotplug Listener waiting for messages. INFO[VTPM]: [VTPM Listener]: VTPM Listener waiting for messages. [root@localhost dev]# xm info host : localhost.localdomain release : 2.6.18-prep version : #1 SMP Thu Jun 26 09:50:30 CST 2008 machine : i686 nr_cpus : 2 nr_nodes : 1 sockets_per_node : 1 cores_per_socket : 2 threads_per_core : 1 cpu_mhz : 1600 hw_caps : bfebfbff:20000000:00000000:00000140:0000e39d:00000000:00000001 total_memory : 1022 free_memory : 2 xen_major : 3 xen_minor : 1 xen_extra : .2 xen_caps : xen-3.0-x86_32p xen_pagesize : 4096 platform_params : virt_start=0xf5800000 xen_changeset : unavailable cc_compiler : gcc version 4.1.2 20070626 (Red Hat 4.1.2-14) cc_compile_by : root cc_compile_domain : localdomain cc_compile_date : Thu Jun 26 10:16:46 CST 2008 xend_config_format : 2 Thanks for any help Oscar ------=_Part_8101_6824862.1215053038508 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

Hello

I install 2.6.18-93.el5(contained xen3.1.2 and tpmback) which download from redhat.com to be my Dom0 and install vtpm_manager from a xen3.1.3 source packet, they work together successfully.

However there is no tpm front-end in 2.6.18-93.el5 so i manually add all the tpm related source files from xen3.1.3 packet, Makefile and Kconfig also. Some errors occur after make the kernel, so i edit the evtchn.c located in /driver/xen/core/ and make the kernel with no error.

I start DomU with vtpm configuration, run vtpm_manager in Dom0, i fail to add a tpm0 device after modprobe tpm_xenu. There is no error and no responce from the vtpm_manager. So strange.

Can anyone give me some suggestion about a workable combination of dom0 and domu with tpm front and back.
 
My screen shows as follow:
[root@localhost ~]# vtpm_managerd
INFO[VTPM]: Starting VTPM.
INFO[TCS]: Constructing new TCS:
INFO[TCS]: Calling TCS_OpenContext:
INFO[VTSP]: OIAP.
INFO[VTSP]: Loading Key into TPM.
INFO[VTSP]: Unbinding 256 bytes of data.
INFO[VTPM]: Loaded saved state (dmis = 0).
INFO[VTSP]: Loading Key into TPM.
INFO[VTPM]: Creating new DMI instance 0 attached.
INFO[TCS]: Calling TCS_OpenContext:
INFO[VTPM]: [Backend Listener]: Backend Listener waiting for messages.
INFO[VTPM]: [Hotplug Listener]: Hotplug Listener waiting for messages.
INFO[VTPM]: [VTPM Listener]: VTPM Listener waiting for messages.

[root@localhost dev]# xm info
host                   : localhost.localdomain
release                : 2.6.18-prep
version                : #1 SMP Thu Jun 26 09:50:30 CST 2008
machine                : i686
nr_cpus                : 2
nr_nodes               : 1
sockets_per_node       : 1
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 1600
hw_caps                : bfebfbff:20000000:00000000:00000140:0000e39d:00000000:00000001
total_memory           : 1022
free_memory            : 2
xen_major              : 3
xen_minor              : 1
xen_extra              : .2
xen_caps               : xen-3.0-x86_32p
xen_pagesize           : 4096
platform_params        : virt_start=0xf5800000
xen_changeset          : unavailable
cc_compiler            : gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)
cc_compile_by          : root
cc_compile_domain      : localdomain
cc_compile_date        : Thu Jun 26 10:16:46 CST 2008
xend_config_format     : 2

Thanks for any help
Oscar
------=_Part_8101_6824862.1215053038508-- --===============0597711702== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0597711702==--