]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Implement postParse callback skipping on config reload
authorPeter Krempa <pkrempa@redhat.com>
Wed, 16 Aug 2017 14:00:25 +0000 (16:00 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 18 Aug 2017 13:07:44 +0000 (15:07 +0200)
commit7726d1581f9e433a106f45ed87ec95ece575f817
treeb4b519412475b4ab0875de4ce96f8cfa3a922fb1
parent7808884808acf3b410e22493154566eacdcc8c5b
qemu: Implement postParse callback skipping on config reload

Use the new facility which allows to ignore failures in post parse
callbacks if they are not fatal so that VM configs are not lost if the
emulator binary is missing.

If qemuCaps can't be populated on daemon restart skip certain portions
of the post parse callbacks during config reload and re-run the callback
during VM startup.

This fixes VMs vanishing if the emulator binary was broken or
uninstalled and libvirtd was restarted.
src/qemu/qemu_domain.c
src/qemu/qemu_process.c