[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] mapping xen pages into a domain

  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "sanjay kumar" <sanjay.kushwaha@xxxxxxxxx>
  • Date: Thu, 16 Mar 2006 15:09:30 -0500
  • Delivery-date: Thu, 16 Mar 2006 20:10:39 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=CfFuvhZ+RnSk7ET6PsY+1clpt1e/IndoBJoAs70+ijYBIXSqCKoHU7xPxnvrk7R9e5Ms7ynAG/9prulBUowInr4pAo+h8gzXTsaPZdJ35NjvRYdc2bDx5E+pThE3I3dVses+TzuVAKnkQvjT8f4Yz6vHphrUfk4FVbQzB3KUujU=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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.


PhD Student, Georgia Tech
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.