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] Grant Table problem mapping dom0 mem to domU

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Grant Table problem mapping dom0 mem to domU
From: "Carlos Perez" <carlosrene@xxxxxxxxx>
Date: Wed, 25 Jul 2007 11:41:30 -0400
Delivery-date: Wed, 25 Jul 2007 08:39:06 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=lcEuVQbMjx1D+UqVgSnDfixyWdRf9IvB2f3ZDOrXjKH6GqkaI56J4jwodisTu9aCUqQl/neioGba/tU9rHCOT01OxpXQ+qgo3qLv5bhiCNMpntaC4vcDhjDLxRlFgfBfpnIEIeis+c5ve7PT2TrzXM/+a9qp1kpQ2GBsrmvzv6I=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=AnhdNlfuuXVfJpkFvnjsycr4++QmAv0nKR0Hnhp/zby8ciXl8nHVeUR+nehiRt/hmBC2gtHCPoj5X5Ibb0Egmthj6rBpQqu5RgqeMdByz+UsIcKrdhYoRR1OEGuq/OFTPHq0wM8jbHn27wMUKI1AszHo3EFPzTEOCUzuRIPep64=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Reply-to: carlos@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I've been looking through some back-end drivers and I notice that
grant tables are used to map domU memory into the privileged domain,
is the opposite possible? Can I map dom0 memory into a domU?

I've written code grants foreign access to a page from dom0 (take the
grant ref_id) then on domU I try to map it (basically the same way ex
blkback does it, or just any other driver for that matter) and all I
get from HYPERVISOR_grant_table_op() is a -1 return value, op.status
is empty=0.

I'll send more information on the specific error, if I at least know
that this can be done and I'm just not falling of a cliff. Also, if it
is possible, can you point me to some example code?

thanks,
C. René

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

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