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] ioremap failing in linux guest

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] ioremap failing in linux guest
From: Anish Bhatt <anish@xxxxxxxxxxxxx>
Date: Thu, 09 Oct 2008 12:50:07 -0400
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 09 Oct 2008 09:50:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48ED39C8.7010802@xxxxxxxx>
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: <C5121C9E.1DFAF%keir.fraser@xxxxxxxxxxxxx> <48ED3762.5060603@xxxxxxxxxxxxx> <48ED39C8.7010802@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.17 (X11/20080925)
The driver for the network processor that I am using does an ioremap call to map memory previously reserved using the mem & memap kernel parameters. for eg. if I reserve memory using memmap=384M$512M, it is calling ioremap(384,512) (with appropriate conversion to bytes) and later using the returned address to setup its queues.
-Anish

Jeremy Fitzhardinge wrote:
Anish Bhatt wrote:
Is there an API for converting pseudophysical addresses to machine addresses or possibly sample code somewhere ?

What are you trying to achieve? ioremap is only valid to use on device memory anyway, so you shouldn't be in a position to use it unless you've already got machine addresses in hand (and they're going to be machine addresses with no existing pfn translation).

   J


--
As long as the music's loud enough, we won't hear the world falling apart.


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