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

Re: [Xen-devel] Grant Tables & mm.c

To: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Grant Tables & mm.c
From: Koripella Srinivas <talkwithsrinivas@xxxxxxxxxxx>
Date: Sat, 7 Jul 2007 19:14:43 +0530 (IST)
Cc: derek.murray@xxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, keir@xxxxxxxxxxxxx
Delivery-date: Sat, 07 Jul 2007 06:42:44 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=HrI89ww+A7EtG/3qIz7HYkzSl17iNDitF3742QSv2ORVmZtKruBYIIxLt+FoEYzIxkXhDYxR0YparIa3Cm9EjGzpXmZ7nvbqBpOprtSqG/8k/ICciqNGzt8Ye//sIc/hrkkwKhFl6ou3+DLVQMDybFpC6SIZ+oUQenFqiDjKsUQ=;
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I was looking at the user space grant tables but i did not find any code calling the function
"remap_pfn_range" to map the kmalloc ed allocated memory into user space.
What could be the reason?? Or am i missing something

Thanks Mark.


----- Original Message ----
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
To: Koripella Srinivas <talkwithsrinivas@xxxxxxxxxxx>
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Sent: Friday, 6 July, 2007 9:55:48 AM
Subject: Re: [Xen-devel] Grant Tables & mm.c

> " Linux tends to zap userspace page mappings quite cheerfully
> unless you do something to stop it, could this be your problem?"
>
> What does this mean exactly??

Linux "zaps" mappings when it removes them from pagetables.  Really this
corresponds to zeroing a pte corresponding to that mapping.

Unless you do something to stop the Linux mm system from treating the grant
table mappins like "normal" RAM, it will eventually want to simply zero them.  
This will break for grant mappings, since it is not a permitted means of
unmapping granted memory.

> Any way i can prevent it from happening?

It depends on what you're trying to do...

Have you looked at the userspace grantables driver in our Linux tree?  This
provides a device for mapping granted memory safely into userspace, handling
cleanup correctly.  Even if that's not directly useful, maybe you can find
some code in there that'll help you.

Cheers,
Mark

--
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!



Hereʼs a new way to find what you're looking for - Yahoo! Answers
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel