From: Keir Fraser Subject: Re: softirq change was Re: domu_debug support removed on march 25th from traps.c in -unstable Date: Wed, 13 Apr 2005 18:59:53 +0100 Message-ID: <98f0605c58c187fcf208ffabd00cce56@cl.cam.ac.uk> References: <93009ddb97d608b4b377dd941bfdbe87@cl.cam.ac.uk> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kip Macy Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 13 Apr 2005, at 18:48, Kip Macy wrote: > No idea why the trace trap flag isn't getting cleared? I can work at > around it at the application level but that is aesthetically > displeasing. You mean that the TF bit is not cleared by the domu_debug code when it should be? The correct place to fix this is in include/asm-x86/debugger.h in debugger_trap_entry(). In general (not using domu_debug) it is not Xen's job to clear TF. We clear it when we 'bounce' the exception into the guest OS, but the saved application stack frame will include EFLAGS with the TF bit still set. This matches real hardware. -- Keir