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: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] ioremap failing in linux guest
From: Anish Bhatt <anish@xxxxxxxxxxxxx>
Date: Wed, 08 Oct 2008 18:42:42 -0400
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 08 Oct 2008 15:43:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C5121C9E.1DFAF%keir.fraser@xxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.17 (X11/20080925)
Is there an API for converting pseudophysical addresses to machine addresses or possibly sample code somewhere ?
-Anish

Keir Fraser wrote:
On 8/10/08 00:23, "Anish Bhatt" <anish@xxxxxxxxxxxxx> wrote:

I'm trying to map some memory reserved with the mem= & memap =
parameters (in guest) in a module in the guest. ioremap keeps failing
with xend dmesg displaying this error :
/ mm.c:710:d2 Error getting mfn 20000 (pfn 2584e) from L1 entry
0000000020000263 for dom3275/

Anyone know why this is happening, or what I'm doing wrong ?
-Anish

ioremap() takes machine addresses when running on Xen; not pseudophysical
addresses.

 -- Keir



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


--
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