[PATCH 0/5] qemu: split off snapshot code for cleanup and reuse