[libvirt] [PATCH v2] qemu: Prevent crash of libvirtd without guest agent configuration

2013-07-16 Thread Alex Jia
If users haven't configured guest agent then qemuAgentCommand() will dereference a NULL 'mon' pointer, which causes crash of libvirtd. With the patch, when the qemu-ga service isn't running in the guest, a expected error error: Guest agent is not responding: Guest agent not available for now will

Re: [libvirt] [PATCH v2] qemu: Prevent crash of libvirtd without guest agent configuration

2013-07-16 Thread Peter Krempa
On 07/16/13 11:30, Alex Jia wrote: If users haven't configured guest agent then qemuAgentCommand() will dereference a NULL 'mon' pointer, which causes crash of libvirtd. With the patch, when the qemu-ga service isn't running in the guest, a expected error error: Guest agent is not responding:

Re: [libvirt] [PATCH v2] qemu: Prevent crash of libvirtd without guest agent configuration

2013-07-16 Thread Peter Krempa
On 07/16/13 13:42, Peter Krempa wrote: On 07/16/13 11:30, Alex Jia wrote: If users haven't configured guest agent then qemuAgentCommand() will dereference a NULL 'mon' pointer, which causes crash of libvirtd. With the patch, when the qemu-ga service isn't running in the guest, a expected error