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] <Second Try>: mapping xen pages into a domain

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] <Second Try>: mapping xen pages into a domain
From: "sanjay kumar" <sanjay.kushwaha@xxxxxxxxx>
Date: Sun, 26 Mar 2006 17:34:03 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 26 Mar 2006 17:35:31 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=S70RzzK4da7TqYglzB8PfRyKdDKBEFSwxrgwvG77LfRy0cKlsaD+i1YU27aElpxgj2ysm8/ub0ProhoJh+Tsbr5msRVAdB8NoGmHZ4iCrsEvW0eW6QyWQaP3ZCp4Q+DI7qU+J/fiPZ3nTgAGqZC3Rm2jf1r2VJDiCPML7L6Ntto=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <2cfbfbff4efc043e8159db9f3320360c@xxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <2717599f0603220750x67aaf511gc8e6515edfd6abac@xxxxxxxxxxxxxx> <2cfbfbff4efc043e8159db9f3320360c@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Keir,
I am kind of stuck here. Could you or someone please point me to an example code where guest (or dom0) kernel is mapping the page (allocated by Xen using share_xen_page_with_guest()) in its own memory.

Thanks,
Sanjay

On 3/22/06, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:

It's not an I/O page so your method won't work. You should use
share_xen_page_with_guest() in Xen, and then the guest can map that
page just like any other that it owns.

  -- Keir

On 22 Mar 2006, at 15:50, sanjay kumar wrote:

> Hi Folks,
>  I posted this question a few days ago. Could someone please help me
> with this?
>
>  Thanks,
>  Sanjay
>
> On 3/16/06, sanjay kumar < sanjay.kushwaha@xxxxxxxxx> wrote:Hi Folks,
>>  I want to allocate a page in xen and share it with a domain so that
>> I can use it for shared memory communication.
>>
>>  I have allocated a page in Xen using
>> base = _xmalloc(PAGE_SIZE, 0);
>>   base_pa = virt_to_phys(base);
>>
>>  I pass this physical address of the page i.e. base_pa to dom0. I
>> also permit access to this page to dom0 using
>>
>>   ret = iomem_permit_access(d, base_pa, 1);
>>
>>  from dom0, I try to ioremap this page in dom0 using the base_pa and
>> ioremap function
>>
>>   base = (unsigned long) ioremap(base_pa, PAGE_SIZE);
>>
>>  but the call to ioremap fails. Could anyone please tell me what I am
>> doing wrong? What is the correct way to do this.
>>
>>  Thanks,
>>  Sanjay
>>
>>
>>
>> --
>> ----------------------
>> PhD Student, Georgia Tech
>> http://www.cc.gatech.edu/~ksanjay/
>
>
>
> --
> ----------------------
> PhD Student, Georgia Tech
> http://www.cc.gatech.edu/~ksanjay/
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel




--
----------------------
PhD Student, Georgia Tech
http://www.cc.gatech.edu/~ksanjay/
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>