From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anish Bhatt Subject: Re: ioremap failing in linux guest Date: Wed, 08 Oct 2008 18:42:42 -0400 Message-ID: <48ED3762.5060603@cc.gatech.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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" 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@lists.xensource.com > http://lists.xensource.com/xen-devel > -- As long as the music's loud enough, we won't hear the world falling apart.