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

[Xen-devel] Sharing a page between Dom0 and DomU


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "anurag tripathi" <anurag.iitg@xxxxxxxxx>
  • Date: Wed, 22 Oct 2008 13:04:15 +0530
  • Delivery-date: Wed, 22 Oct 2008 00:35:30 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=NpWEc4ouz7qm9ciycIO4CCoAZtkPqv5q5Evgz/dvnC5mMIlkvjC9yezFqnlCN87en0 AG77My9nOO2cp9DhrILbCfPjCqo6TphmSHaC83Mtb75zC/5uf+zg/rRXPLMH4eSkSwC+ 6UmQerZqUe7gjd7ohOuez45uyUSCdj2twmCZA=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

I want to share a page between Dom0 and DomU, As per my understanding steps
   should be as follows:-\
   1)DomU get a page
   2)DomU created a grant access reference and transmit the reference id to
   Dom0
   3)Dom0 maps the page and do the memory acces
   4)Dom0 unmap the page
   In Dom0 we can map the page through following:-
   uint32_t domid = ...;
   uint32_t ref = ...;
   int xcg = xc_gnttab_open();
   void *my_addr = xc_gnttab_map_grant_ref(xcg, dom_id, ref, PROT_READ |
   PROT_WRITE);
   How to grant the access to Dom0 from user space.
   Regards,
   Anurag Tripathi
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

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