From: Keir Fraser Subject: Re: [PATCH] vmx: Fix single step on debugger Date: Mon, 22 Dec 2008 08:02:03 +0000 Message-ID: References: <7kzlipkkf1.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: <7kzlipkkf1.fsf@pingu.sky.yk.fujitsu.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kouya Shimura Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 22/12/2008 02:34, "Kouya Shimura" wrote: > 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? If you make it conditional on debugger_attached then I guess you can do what you like. I strongly dislike it though. -- Keir