>On 07/22/2017 04:55 AM, Yi Wang wrote:

>> Start a domain whilst undefine it, if starting failed duing ProcessLaunch,

>> on which period qemu exited unexpectedly, the operation will lead to failure

>> of undefine the domain until libvirtd restarted. The reason is that libvirtd

>> will unlock vm during qemuProcessStart, qemuDomainUndefineFlags can get the

>> lock and set vm->persistent 0 but not remove the "active" domain.

>> 

>> Signed-off-by: Yi Wang <wang.y...@zte.com.cn>

>> ---

>>  src/conf/domain_conf.h  | 1 +

>>  src/qemu/qemu_driver.c  | 6 ++++++

>>  src/qemu/qemu_process.c | 3 +++

>>  3 files changed, 10 insertions(+)

>> 

>

>Can you apply a couple of recent patches, see:

>

>https://www.redhat.com/archives/libvir-list/2017-August/msg00389.html

>

>and see if those would resolve what you're seeing... without these

>changes of course...




Yeah, It works. Thanks for the patch, which is the correct solution for my 
problem.


---

Best wishes

Yi Wang
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to