tpm front-end problem
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 : i686nr_cpus : 2nr_nodes : 1sockets_per_node : 1cores_per_socket : 2threads_per_core : 1cpu_mhz : 1600hw_caps :
bfebfbff:20000000:00000000:00000140:0000e39d:00000000:00000001total_memory : 1022free_memory : 2xen_major : 3xen_minor : 1xen_extra : .2xen_caps : xen-3.0-x86_32pxen_pagesize : 4096platform_params : virt_start=0xf5800000xen_changeset : unavailablecc_compiler : gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)cc_compile_by : rootcc_compile_domain : localdomaincc_compile_date : Thu Jun 26 10:16:46 CST 2008xend_config_format : 2
Thanks for any help
Oscar
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
You need to at first (!) start the vtpm_manager and leave it running in Dom0 before you can start any DomU with a vtpm device.
From: [email protected] [mailto:[email protected]] On Behalf Of fan he
Sent: 03 July 2008 03:44
To: [email protected]
Subject: [Xen-devel] tpm front-end problem
Hello
I install 2.6.18-93.el5(contained xen3.1.2 and tpmback) which download from redhat.com<http://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 : i686nr_cpus : 2nr_nodes : 1sockets_per_node : 1cores_per_socket : 2threads_per_core : 1cpu_mhz : 1600hw_caps : bfebfbff:20000000:00000000:00000140:0000e39d:00000000:00000001total_memory : 1022free_memory : 2xen_major : 3xen_minor : 1xen_extra : .2xen_caps : xen-3.0-x86_32pxen_pagesize : 4096platform_params : virt_start=0xf5800000xen_changeset : unavailablecc_compiler : gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)cc_compile_by : rootcc_compile_domain : localdomaincc_compile_date : Thu Jun 26 10:16:46 CST 2008xend_config_format : 2
Thanks for any help
Oscar
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 0199E0D51A61344794750DC57738F58E3F681D8B9D@GVW1118EXC.americas.hpqcorp.net
I copy all tpm related source files including tpm_bios tpm tpm_xen tpm_vtpm Makefile Kconfig from driver/char/tpm. After modify some errors,i compile the kernel successfully.
In DomU, modprobe tpm_xenu is ok and show no error. But there is no tpm0 in /dev. And no responce recieved in vtpm_manager in Dom0.
My kernel is 2.6.18+xen3.1.2, the dom0 with tpm back-end and vtpm_manager works ok.
I just want to use a native tpm front end driver to test, but have no idea about the kernel version.
2008/7/3, Fischer, Anna <[email protected]>:
Quoted 110 lines
Note that the tpm frontend driver is not under
drivers/xenanymore, but
it is underdrivers/char/and is calledtpm_xenandtpm_vtpm. That driver should be available under any Linux kernel from 2.6.16 upwards. There is nothing you need to modify to make that compile. Are you sure that you have tried to compile those correct sources?*From:* fan he [mailto:[email protected]]
*Sent:* 03 July 2008 08:35
*To:* Fischer, Anna
*Subject:* Re: [Xen-devel] tpm front-end problemI do firstly add a tpmbk driver and run
vtpm_managerin Dom0 and it seems work well.I think my mistake is i manually modified the driver code, i really want to use some kernel with native tpm front-end driver. I suffered a lot from compatible problem.
May i ask you about your kernel version and OS(with xen version)?
Thanks
2008/7/3, Fischer, Anna <[email protected]>:
You need to at first (!) start the
vtpm_managerand leave it running in Dom0 before you can start any DomU with a vtpm device.*From:* [email protected] [mailto:
[email protected]] *On Behalf Of *fan he *Sent:* 03 July 2008 03:44
*To:* [email protected]
*Subject:* [Xen-devel] tpm front-end problemHello
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_managerfrom 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,
MakefileandKconfigalso. Some errors occur after make the kernel, so i edit theevtchn.clocated in /driver/xen/core/ and make the kernel with no error.I start DomU with vtpm configuration, run
vtpm_managerin Dom0, i fail to add a tpm0 device after modprobetpm_xenu. There is no error and no responce from thevtpm_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]: CallingTCS_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]: CallingTCS_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 : i686nr_cpus: 2nr_nodes: 1sockets_per_node: 1cores_per_socket: 2threads_per_core: 1cpu_mhz: 1600hw_caps:
bfebfbff:20000000:00000000:00000140:0000e39d:00000000:00000001total_memory: 1022free_memory: 2xen_major: 3xen_minor: 1xen_extra: .2xen_caps: xen-3.0-x86_32pxen_pagesize: 4096platform_params: virt_start=0xf5800000xen_changeset: unavailablecc_compiler: gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)cc_compile_by: rootcc_compile_domain: localdomaincc_compile_date: Thu Jun 26 10:16:46 CST 2008xend_config_format: 2
Quoted 6 lines
Thanks for any help
Oscar
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel