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] [PATCH] x86: adjust reserved bit page fault handling

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] x86: adjust reserved bit page fault handling
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Fri, 01 Feb 2008 11:24:41 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Delivery-date: Fri, 01 Feb 2008 03:25:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C3C8AAF1.1BBE3%Keir.Fraser@xxxxxxxxxxxx>
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>
References: <47A304B5.76E4.0078.0@xxxxxxxxxx> <C3C8AAF1.1BBE3%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> 01.02.08 11:54 >>>
>On 1/2/08 10:38, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:
>
>>> The shadow pagetable code deliberately introduces invalid pagetable
>>> entries as part of its fast-path treatment of MMIO and not-present
>>> entries in the guest tables, so paging_fault needs to be called for
>>> PFEC_reserved_bit faults.
>> 
>> Here's a replacement patch then, it would still be questionable whether
>> reserved bit faults should ever be propagated to a guest...
>> 
>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
>
>What problem does this patch solve?

When debugging the xen_change_pte_range() problem I mistakenly
interpreted a page fault error code 15 as being decimal (it really was
hex) and looked at the reserved bit fault handling. The patch is the
outcome of this; despite it turned out to not be a fault of this kind I
thought that tightening the handling (and adding the printing, since
reserved bit faults are [except in the case mentioned by Tim] always
bad) wouldn't be a bad idea.

Jan


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