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] vmx: Fix single step on debugger

To: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] vmx: Fix single step on debugger
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 22 Dec 2008 08:02:03 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 22 Dec 2008 00:02:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7kzlipkkf1.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclkC5L5pju3Igzyb0KdCqiteUTcGQ==
Thread-topic: [Xen-devel] [PATCH] vmx: Fix single step on debugger
User-agent: Microsoft-Entourage/12.14.0.081024
On 22/12/2008 02:34, "Kouya Shimura" <kouya@xxxxxxxxxxxxxx> 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



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