[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] How to capture guest %rip from a qemu process without m

From: Richard W.M. Jones
Subject: Re: [Qemu-devel] How to capture guest %rip from a qemu process without monitor?
Date: Fri, 30 Sep 2011 10:03:09 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Sep 30, 2011 at 10:49:20AM +0200, Jan Kiszka wrote:
> On 2011-09-30 09:42, Richard W.M. Jones wrote:
> > 
> > I've finally managed to reproduce a very infrequent kernel boot hang
> > by forcing TCG (so it runs slower, bug seems to be timing sensitive)
> > and running a boot test in a loop thousands of times.
> > 
> > I'd like to find out where in the guest kernel this is looping.
> > 
> > Unfortunately I don't have access to the monitor so "info registers"
> > won't work, but I can attach to the qemu process with gdb.
> > 
> > Which TCG struct contains %rip, other registers?  What other useful
> > information can be captured using only gdb?
> Print first_cpu->eip, maybe also first_cpu->segs[1] to dump the CS
> segment cache (relevant while in real mode).

Perfect thanks!

*first_cpu contains a wealth of info.


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw

reply via email to

[Prev in Thread] Current Thread [Next in Thread]