WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Sharing a page between Dom0 and DomU
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=M/gykfAYuRHte1iK1aiKsNbULGtSqYkdGwj66EvYx3g=; b=Rl8HbxqpVazQsepZhAxTL2u6yi4IJgtZ2E2mKibThi0xRRBiKQkJfXPZDOpBwlWyDf HjuufTnmvYUzo6YhE0ESgj0JXo5gsrw+TJXP33WfoPzFekyfr9qDkCcXa245PqzP470s 7/ZKuWPobcTHbC6dRZ27zdgK2sUQqfkoEG4yA=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Sharing a page between Dom0 and DomU, anurag tripathi <=