[libvirt PATCH 07/14] qemu_snapshot: revert: move config prepare code to separate function