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] Contiguous DMAble memory in Dom0 user space linux process

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Contiguous DMAble memory in Dom0 user space linux process
From: "Kashmira. K." <chimnee@xxxxxxxxx>
Date: Wed, 13 Jan 2010 13:03:39 -0800 (PST)
Cc: winterfi@xxxxxxxxx
Delivery-date: Wed, 13 Jan 2010 13:04:16 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1263416619; bh=grle9FfSAyj/CrA0LoBiocC/YTgPg6SacACHry37gWo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=1GjlCgQd5PzpIBPaZ/qmwxjMqAN1fSKXsc27xxGoQgU1++ztliPktLcKHPpesZCP0eZDo4CJMl0Q7G9KopY7GMjMGKYB/Zwn7I9Nnpe0s/BzUkANa5N4fK53FYTqy9JqwhYRVADX+riCteqQzFm0KwTRQLaZzvH9Aw8zKRH/e9g=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=LZGv7highEiIIqml3LCyM423btVpxvxPcyDWRamYmEYcBXPYcdV7CXxWEc5lmHKvnqz/pryRoFZN16g+mlk6i1Lmx/83CeRwZl9SgqhzRaP3dXN6A4Ox1EcC/p3iP9dunH3HzXWgMB+Qdm+jjZql5al3rEchN54yYgQ+/3znO8o=;
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
Hello Xen experts,

I am trying to get contiguous DMAble memory in user space application which is 
a processes running on xen capable Linux.

I thought I could use xen_create_contiguous_region(), but it appears that is 
for linux kernel modules. 

I need to get about 500MB of contiguous DMAble memory in my application. This 
application will run in Dom0. This memory is not to be shared between Domains.

Is it possible to use the  HYPERVISOR_grant_table_op hypercall passing 
GMTTABOP_map_grant_ref as command to achieve this. If so, to use this hypercall 
the grant reference is required. How do I get the grant reference?  Would 
appreciate if I can get an example code or pointer to one to clearly understand 
how to achieve this.

If you have any other suggestion of a better way to get contiguous memory in 
user space app in Dom0, I am open to that.

On a different note, where can I get detailed hypercall reference guide.  Most 
palaces I've searched have a list of hypercalls but not the description of each 
of the commands of arguments of the hypercall. 

Thanks in advance.

Regards
Kashmira


      

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