From: Avi K. <av...@qu...> - 2008-05-11 14:24:36
|
Marcelo Tosatti wrote: > On Fri, May 09, 2008 at 04:22:08PM -0300, Marcelo Tosatti wrote: > >> For things like register dumps I don't believe its worthwhile. Much >> simpler to stop the vcpu with SIG_IPI, retrieve registers, and run it >> again (now that you mention the busy-spin, it is broken right now, if a >> vcpu is spinning without exiting to userspace). >> > > ... which is what Jan's gdb/monitor patch does. > We'd better change it. Suppose your vcpu is spinning, and you want to find out why? One nice thing would be to add an on_vcpu(void (*func)(void *data), void *data), so that people don't have to open-code it for things like this. I tried to do this once, but backed off due to the mess that qemu-kvm threading was at the time. I think it's much better off now. -- error compiling committee.c: too many arguments to function |