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] ptwr_emulate adjustments

To: Jan Beulich <jbeulich@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] ptwr_emulate adjustments
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 16 Jan 2007 12:58:47 +0000
Delivery-date: Tue, 16 Jan 2007 04:58:41 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45ACD5E9.76E4.0078.0@xxxxxxxxxx>
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: Acc5bg9YTcwLI6VhEdurKQANk04WTA==
Thread-topic: [Xen-devel] [PATCH] ptwr_emulate adjustments
User-agent: Microsoft-Entourage/11.3.2.061213
On 16/1/07 12:40 pm, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:

> - really only do the invalid PAE PTE fixup on write to the high part

Okay. We could theoretically get failures the other way round too I should
think but clearly the existing code doesn't handle that properly (since
it'll lose the PAGE_PRESENT forever) so it can't be something we've seen in
practise. This clarification and extra check makes sense.

> - dump guest execution state when emulation fails

We can't put anything more than XENLOG_G_WARNING on a path that a guest can
exercise at will. One option is to make show_execution_state (and hence all
underlying state-dump functions) take the dump log level as a parameter.

> - use the passed in register pointer rather than re-calculating
>   guest_cpu_user_regs()

The assertion is broken and anyway really a bit overkill imo. Using regs
rather than guest_cpu_user_regs() makes sense.

 -- Keir

> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>



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

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