From mboxrd@z Thu Jan 1 00:00:00 1970 From: "ruozeng.w" Subject: How can I use grant table in domainU? Date: Mon, 4 Apr 2011 18:15:22 +0800 Message-ID: <201104041815185384477@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0770390425==" 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 List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============0770390425== Content-Type: multipart/alternative; boundary="=====003_Dragon336140763880_=====" This is a multi-part message in MIME format. --=====003_Dragon336140763880_===== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Can applications runs in domainU use grant table? I found a way in the document(/docs/misc/grant-tables.txt), using function gnttab_grant_foreign_access . But, this fucntion is defined in domainU kernel, for example, in my installation, it's in /linux-2.6.18-xen.hg/include/xen/gnttab.h. Then how can I call this function in my own application? If I wants to write a simple program(program1) runs in domainA, to map a frame to domainB, in which another simple program(program2) is running, then program2 can read the information program1 sent to domainB, what should I do? thanks. 2011-04-04 Wishes Ruozeng W --=====003_Dragon336140763880_===== Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit
Can applications runs in domainU use grant table?
 
I found a way in the document(/docs/misc/grant-tables.txt), using function gnttab_grant_foreign_access . But, this fucntion is defined in domainU kernel, for example, in my installation, it's in /linux-2.6.18-xen.hg/include/xen/gnttab.h.
 
Then how can I call this function in my own application?
If I wants to write a simple program(program1) runs in domainA, to map a frame to domainB, in which another simple program(program2) is running, then program2 can read the information program1 sent to domainB, what should I do?
 
thanks.
 
2011-04-04

Wishes
Ruozeng W 
--=====003_Dragon336140763880_=====-- --===============0770390425== 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 --===============0770390425==--