From: Kouya Shimura Subject: Re: [PATCH] vmx: Fix single step on debugger Date: Mon, 22 Dec 2008 11:34:09 +0900 Message-ID: <7kzlipkkf1.fsf@pingu.sky.yk.fujitsu.co.jp> References: <7k7i5w1on4.fsf@pingu.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Indeed, this fix is hacky but it works well for me. At first, I tried setting GUEST_PENDING_DBG_EXCEPTIONS.BS according to the SDM. As a result, the guest doesn't be killed but never go progress after the STI instruction (i.e. VM exit immediately after VM entry) as long as RFLAGS.TF=1. That is inconvenient for debugging. Is there any other way? Thanks, Kouya Keir Fraser writes: > On 19/12/2008 09:48, "Kouya Shimura" wrote: > > > The hvm domain which is being debugged sometimes crashes with the > > following message: > > The fix looks like a dubious hack to me. Wouldn't it at least be a bit > cleaner to mess with DR6.BS (the flag that's actually being checked by the > CPU) rather than messing with the DEBUGCTL.BTF control flag? > > -- Keir >