[libvirt] an AB deadlock or libvirtd crash problem in virsh console and virsh destroy

2016-08-04 Thread weifuqiang
Hi all: I encountered with an AB deadlock and libvirtd crash problem the other day. The process to generate the problems: 1 use the command "virsh create ***.xml" to create a vm 2 after vm is running , use the command "virsh console ***" to connect vm with console 3 after connection, use

[libvirt] [PATCH] qemu: fix libvirtd crash in migration after vm shutdown

2016-08-01 Thread weifuqiang
[PATCH] qemu: fix libvirtd crash in migration after vm shutdown If we shutdown a guest, then migrate it without the arg XML, libvirtd will get crashed. The reason is that: 1 during shutdown callback, qemuProcessStop() , it points vm->def to vm->newDef 2 during migration, it frees persis

[libvirt] logging: Libvirtd could not create its own logfile, when the path /var/log/libvirt is not exist.

2016-07-27 Thread weifuqiang
Hi all: Libvirtd could not create its own logfile, such as /var/log/libvirt/libvirtd.log, when the path /var/log/libvirt is not exist. It may be a problem,I think,so try to make patch when open file failed in virLogAddOutputToFile. or any better idea? Libvirtd just creates its logf

[libvirt] An AB deadlock and libvirtd crash problem the other day with virsh console

2015-12-21 Thread weifuqiang
Hi all: I encountered with an AB deadlock and libvirtd crash problem the other day. The process to generate the problems: 1 use the command "virsh create ***.xml" to create a vm 2 after vm is running , use the command "virsh console ***" to connect vm with console 3 after connection, use