When the first time I posted this, it didn''t appear on the mailing
list. so
posting my question again.
Thanks,
Sanjay
On 3/16/06, sanjay kumar <sanjay.kushwaha@gmail.com>
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/
<http://www.cc.gatech.edu/%7Eksanjay/>
>
--
----------------------
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