From: Keir Fraser Subject: Re: [PATCH] fix gdb debugging of hypervisor Date: Tue, 11 Dec 2007 18:04:15 +0000 Message-ID: References: <18270.52192.288867.395215@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18270.52192.288867.395215@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 11/12/07 17:41, "Ian Jackson" wrote: > The best way to deal with this seemed to me to make > __spurious_page_fault always return false when the debugger is > attached (ie, when we are running the debugging stub). The comments > surrounding __spurious_page_fault seem to suggest that these only > occur when page tables are changed. If that's true then this change > is correct since the debugging stubs don't change page tables. I think it's more obvious to check for in_irq(). That predicate already exists, and pagetables are never updated in IRQ context. And it's exactly the case that __spurious_page_fault() cannot handle. Apart from that the patch is good. -- Keir