WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Mini-OS as TPM driver domain

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Mini-OS as TPM driver domain
From: Wei LIU <liuw@xxxxxxxxx>
Date: Tue, 13 Jul 2010 20:26:40 +0800
Delivery-date: Tue, 13 Jul 2010 05:27:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, Xen experts.

We are writing some experiment code to use Mini-OS as a driver domain.

As a proof-of-concept prototype, we try to port TPM driver to Mini-OS.
The driver comes from OSLO (Open Source LOader), which is simple
enough to understand its behavior.

We use TPM-1.2 memory map I/O interface. The problem is that when we
do "read", e.g. read vendor ID, everything just go fine. When we do
"write", e.g. issue a command to hardware, the whole page becomes
0xff.

That's weird. I think I might have some problem mapping I/O memory. I
go through Intel manual, XenoLinux TPM driver code and TIS
specification and couldn't tell why.

How we map those pages:

map_frames_ex(&mfn, 5, 0, 1, 1, DOMID_IO, 0,
L1_PROT|_PAGE_PWT|_PAGE_PCD|_PAGE_DIRTY|_PAGE_ACCESSED|_PAGE_IO);
flush_tlb();

These operations are analogous to XenoLinux ones, I think. You are
welcome to point out my stupid mistakes. And, if mapping is not the
problem, which direction should I head for.

Any reply is appreciated. Thanks!


Wei Liu
July 13, 2010

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>