From: "anurag tripathi" Subject: Sharing a page between Dom0 and DomU Date: Wed, 22 Oct 2008 13:04:15 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1801708140==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1801708140== Content-Type: multipart/alternative; boundary="----=_Part_15495_7152020.1224660855526" ------=_Part_15495_7152020.1224660855526 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_15495_7152020.1224660855526 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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
------=_Part_15495_7152020.1224660855526-- --===============1801708140== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1801708140==--