Re: [Qemu-devel] [PATCH] gdb command: qemu aios, qemu aiohandlers

2015-10-27 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > > > On 20/10/2015 13:05, Dr. David Alan Gilbert (git) wrote: > > +entry = cur.dereference() > > +gdb.write('\n%s\n' % entry) > > +if cur['io_read'] == sym_fd_coroutine_enter: > > +coptr = > > (cur['opaque'].ca

Re: [Qemu-devel] [PATCH] gdb command: qemu aios, qemu aiohandlers

2015-10-25 Thread Paolo Bonzini
On 20/10/2015 13:05, Dr. David Alan Gilbert (git) wrote: > +entry = cur.dereference() > +gdb.write('\n%s\n' % entry) > +if cur['io_read'] == sym_fd_coroutine_enter: > +coptr = > (cur['opaque'].cast(gdb.lookup_type('FDYieldUntilData').pointer()))['co'] > +

Re: [Qemu-devel] [PATCH] gdb command: qemu aios, qemu aiohandlers

2015-10-25 Thread Fam Zheng
On Fri, 10/23 11:09, Stefan Hajnoczi wrote: > On Fri, Oct 23, 2015 at 10:32 AM, Fam Zheng wrote: > > On Tue, 10/20 12:05, Dr. David Alan Gilbert (git) wrote: > >> From: "Dr. David Alan Gilbert" > >> > >> Two new gdb commands are added: > >> > >> qemu iohandlers > >> > >> that dumps the lis

Re: [Qemu-devel] [PATCH] gdb command: qemu aios, qemu aiohandlers

2015-10-23 Thread Stefan Hajnoczi
On Fri, Oct 23, 2015 at 10:32 AM, Fam Zheng wrote: > On Tue, 10/20 12:05, Dr. David Alan Gilbert (git) wrote: >> From: "Dr. David Alan Gilbert" >> >> Two new gdb commands are added: >> >> qemu iohandlers >> >> that dumps the list of waiting iohandlers, this is particularly >> useful f

Re: [Qemu-devel] [PATCH] gdb command: qemu aios, qemu aiohandlers

2015-10-23 Thread Fam Zheng
On Tue, 10/20 12:05, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Two new gdb commands are added: > > qemu iohandlers > > that dumps the list of waiting iohandlers, this is particularly > useful for trying to figure out where an incoming migration is >

[Qemu-devel] [PATCH] gdb command: qemu aios, qemu aiohandlers

2015-10-20 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Two new gdb commands are added: qemu iohandlers that dumps the list of waiting iohandlers, this is particularly useful for trying to figure out where an incoming migration is blocked. For 'fd_coroutine_enter' cases we dump a full backtrace. qe