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] Debugging the hypervisor

To: Matthew Donovan <matthew@xxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Debugging the hypervisor
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 21 May 2008 17:39:46 +0100
Delivery-date: Wed, 21 May 2008 09:40:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <60D45469A1AAD311A04C009027B6BF680646103B@SERVER20>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Aci7YUcmhamsuidUEd2/hwAWy6hiGQ==
Thread-topic: [Xen-devel] Debugging the hypervisor
User-agent: Microsoft-Entourage/11.4.0.080122
On 21/5/08 17:43, "Matthew Donovan" <matthew@xxxxxxxxxxxxxx> wrote:

>  Well, maybe I'm not going about this the right way then.
> 
> Back in February, I asked some questions about getting the interrupt
> descriptor table from an HVM guest with xc_vcpu_getcontext.  You said the
> only way to do it at the time was to do an hvm-save hypercall and parse the
> binary.  At the time, we put the whole issue to the side to get some other
> things working first.  Now we've come back to it and are looking at getting
> an HVM's IDT programmatically without doing the hvm_save() call.
> 
> I've been looking at the source but I really wanted to be able to put in a
> breakpoint and step through the code (if it's possible) to see how
> everything really interacts.
> 
> If you can give me any direction (either for debugging Xen or getting the
> IDT) I would really appreciate it.

Well, debugging Xen and obtaining an HVM guest's IDT details seem rather
different things to want to do. What do you require the IDT details for? The
right approach to obtain those details is to issue an hvm_save hypercall and
then parse the returned guest state to find the IDT details for each VCPU. I
can give yous ome more direction on this if that is what you need to be able
to do. Getting serial gdbstub working is not the right path to that end.

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>