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: Illegal PV kernel pfm/pfn translations on PROT_NONE iore

To: "Stephen C. Tweedie" <sct@xxxxxxxxxx>
Subject: [Xen-devel] Re: Illegal PV kernel pfm/pfn translations on PROT_NONE ioremaps
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 19 Mar 2008 18:52:13 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>
Delivery-date: Wed, 19 Mar 2008 11:53:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1205946765.7277.40.camel@xxxxxxxxxxxxxxxxxxxxx>
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
Thread-index: AciJ8lfolrMeWPXlEdyyLQAX8io7RQ==
Thread-topic: Illegal PV kernel pfm/pfn translations on PROT_NONE ioremaps
User-agent: Microsoft-Entourage/11.4.0.080122
On 19/3/08 17:12, "Stephen C. Tweedie" <sct@xxxxxxxxxx> wrote:

> On Wed, 2008-03-19 at 16:42 +0000, Keir Fraser wrote:
> 
>>> It might be easier to do this at the pte_machine_to_phys level instead,
>>> where we can potentially take advantage of other bits of the pte to
>>> encode the special casing.
>> 
>> Oh yes, the PAGE_IO type of trick I mentioned in my other email just now.
> 
> Yep.  There are a number of bits that could be used: for example, I
> don't think PROT_WRITE is ever going to be set on a PROT_NONE page,
> either.

My point is the flag would be set even when the protection is not PROT_NONE.
It has other uses beyond fixing this bug.

I might look into doing this myself as I think it is probably the best fix
for this issue.

 -- Keir



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