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] Question on xc_gnttab_map_grant_ref()

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Question on xc_gnttab_map_grant_ref()
From: NAHieu <nahieu@xxxxxxxxx>
Date: Thu, 3 Nov 2005 21:53:21 +0900
Delivery-date: Thu, 03 Nov 2005 12:50:24 +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:content-transfer-encoding:content-disposition; b=CpR/yskXPQQ9gKMHZ3WXtUtIiRrSE6Vz43fqc6mzyZHUSiaP8NzbzujI07i5Iz96xbInyqun/wfcwSuCXG+4iZigpTHpkvW/sr4YbF9pdoFon85NTBYM2fM/4eOIz4sV4xz+vAz+4K+alqd5hCdc4X2GuEAnSNqkiEdBJ67kqoo=
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I am writing a kermel module in DomU, and this module grants a page of
memory to Dom0. Then in Dom0 I try to grant_map it with
xc_gnttab_map_grant_ref()

But this function requires a flag, and I don't know which option to
give it. I tried with either GNTMAP_application_map or
GTF_reading|GTF_writing, but I always got this error:

ERROR: do_gnttab_op: HYPERVISOR_grant_table_op failed: -1

Anybody please tell me how to use xc_gnttab_map_grant_ref() properly
in Dom0's userspace?


Many thanks.
Hieu

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>