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

RE: [Xen-devel] Memory Mapped IO devices in a domU

To: Matthew Fioravante <matthew.fioravante@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Memory Mapped IO devices in a domU
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Date: Fri, 10 Dec 2010 17:49:23 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Delivery-date: Fri, 10 Dec 2010 09:52:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D02527C.1090709@xxxxxxxxxx>
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>
References: <4D02527C.1090709@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcuYhebgFvwATTeNR0e6AHpAkgxA1wAC928Q
Thread-topic: [Xen-devel] Memory Mapped IO devices in a domU
>   How would one pass a memory mapped device to a domU? In particular I'm
> trying to pass the TPM to a domU. It is a memory mapped device with 5
> pages starting at 0xfed40000.

You probably actually want to pass locality 0 through to the guest, which is 
one page starting at 0xfed40000.

You can do this by adding the relevant mmio passthrough option to the domain 
config file [I forget the actual name].

The easiest way to ensure you're not using the device in dom0 is just not to 
load the TPM driver. Alternatively, modify the dom0 driver to use another TPM 
locality e.g. 1 (the page above).

Ian

 
> Currently I'm playing with the memory_op hypercall, using
> XENMEN_add_to_phys but its failing and I'm currently investigating why.
> Is this even the right hypercall to use for this? How do I deal with the
> fact that the device is already mapped into dom0 by default? Do I need to
> explicitly unmap the pages from dom0 first somehow?



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

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