From: Keir Fraser Subject: Re: : mapping xen pages into a domain Date: Wed, 22 Mar 2006 15:54:40 +0000 Message-ID: <2cfbfbff4efc043e8159db9f3320360c@cl.cam.ac.uk> References: <2717599f0603220750x67aaf511gc8e6515edfd6abac@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <2717599f0603220750x67aaf511gc8e6515edfd6abac@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: sanjay kumar Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org It's not an I/O page so your method won't work. You should use=20 share_xen_page_with_guest() in Xen, and then the guest can map that=20 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=20= > with this? > > Thanks, > Sanjay > > On 3/16/06, sanjay kumar wrote:Hi Folks, >> I want to allocate a page in xen and share it with a domain so that=20= >> I can use it for shared memory communication. >> >> I have allocated a page in Xen using >> =A0=A0=A0 base =3D _xmalloc(PAGE_SIZE, 0); >> =A0=A0=A0 base_pa =3D virt_to_phys(base); >> >> I pass this physical address of the page i.e. base_pa to dom0. I=20 >> also permit access to this page=A0 to dom0 using >> >> =A0=A0=A0 ret =3D iomem_permit_access(d, base_pa, 1); >> >> from dom0, I try to ioremap this page in dom0 using the base_pa and=20= >> ioremap function >> >> =A0=A0=A0 base =3D=A0 (unsigned long) ioremap(base_pa, PAGE_SIZE); >> >> but the call to ioremap fails. Could anyone please tell me what I am=20= >> doing wrong? What is the correct way to do this. >> >> Thanks, >> Sanjay >> >> >> >> --=20 >> ---------------------- >> PhD Student, Georgia Tech >> http://www.cc.gatech.edu/~ksanjay/ > > > > --=20 > ---------------------- > PhD Student, Georgia Tech > http://www.cc.gatech.edu/~ksanjay/ > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel