Re: [libvirt] Executing gdb/gcore as an on_crash action

2017-12-21 Thread Sergio Lopez
On Thu, Dec 21, 2017 at 3:51 PM, Daniel P. Berrange wrote: > On Thu, Dec 21, 2017 at 11:22:48AM +0100, Sergio Lopez wrote: >> I'm willing to work on a patch implementing this feature myself, but >> first I'd like to know if this sounds good to you. Also, if it does, >> do you think the behavior of

Re: [libvirt] Executing gdb/gcore as an on_crash action

2017-12-21 Thread Daniel P. Berrange
On Thu, Dec 21, 2017 at 11:22:48AM +0100, Sergio Lopez wrote: > Hi, > > Right now, the actions coredump-[destroy|restart] for on_crash work in > a similar way as "virsh dump", requesting a dump of Guest's memory > contents to QEMU. > > I think it'd be nice to have the ability for executing gdb/gc

[libvirt] Executing gdb/gcore as an on_crash action

2017-12-21 Thread Sergio Lopez
Hi, Right now, the actions coredump-[destroy|restart] for on_crash work in a similar way as "virsh dump", requesting a dump of Guest's memory contents to QEMU. I think it'd be nice to have the ability for executing gdb/gcore to produce a full core dump of QEMU. This would be especially useful for