V2 of https://lists.libvirt.org/archives/list/devel@xxxxxxxxxxxxxxxxx/message/SKVPVQ36ND7GHZN27RTYLUXHP5GCUI4B/ Changes in V2: * V1 moved the special-case handling of invalid dump image format to doCoreDump. V2 removes it, and fails on invalid configuration similar to the other save-related operations. * New patch4 that moves checking for a valid save image format from time of use to config file parsing at driver startup Jim Fehlig (4): qemu: Move declaration of virQEMUSaveFormat to header file qemu: Don't ignore dump image format errors qemu: Change return value of SaveImageGetCompressionProgram qemu: Check for valid save image formats when loading driver config src/qemu/qemu_conf.c | 35 ++++++++++++--- src/qemu/qemu_conf.h | 6 +-- src/qemu/qemu_driver.c | 30 ++++--------- src/qemu/qemu_saveimage.c | 92 +++++++-------------------------------- src/qemu/qemu_saveimage.h | 25 +++++++++-- src/qemu/qemu_snapshot.c | 8 ++-- 6 files changed, 80 insertions(+), 116 deletions(-) -- 2.43.0