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] Re: [PATCH] paravirt/xen: add pvop for page_is_ram

To: "H. Peter Anvin" <hpa@xxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] paravirt/xen: add pvop for page_is_ram
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Tue, 10 Mar 2009 15:44:52 -0700
Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, the arch/x86 maintainers <x86@xxxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
Delivery-date: Tue, 10 Mar 2009 15:45:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49B6E7EB.2040009@xxxxxxxxx>
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>
References: <1235786365-17744-1-git-send-email-jeremy@xxxxxxxx> <1235786365-17744-10-git-send-email-jeremy@xxxxxxxx> <49B5BD63.1090909@xxxxxxxxx> <49B6D94F.9070902@xxxxxxxx> <49B6E7EB.2040009@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20090105)
H. Peter Anvin wrote:
3) isn't yet relevant to Xen; ioremap can't map granted pages either, so
2) isn't terribly relevent, so the main motivation for this patch is
1).  This allows us to reject usermode attempts to map granted pages,
rather than oopsing (as a failed set_pte will raise a page fault).

So, more cosmetic than essential, but I don't see a better way to
implement this functionality if its to be there at all.


OK, that is a valid usage case and I agree about repurposing the
existing interface.  However, it is also a definition change in the
interface, so it really should be renamed first.

Would you be willing to break this patch up into one which renames the
interface and then a second which adds the pv hook?

Well, on reflection, given that the thing we're testing for is "is page is allowed to be mapped by /dev/mem?", and devmem_is_allowed() already exists for precisely that reason, the answer is to put the hook there...

But, it seems I got the logic wrong anyway. /dev/mem doesn't allow RAM pages to be mapped anyway, so granted pages masquerading as RAM will not be mappable via /dev/mem. So I think we can safely drop this patch with no futher ado.

   J

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

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