user-level: 0.870 risc-v: 0.851 register: 0.840 permissions: 0.839 graphic: 0.821 VMM: 0.819 vnc: 0.818 virtual: 0.818 KVM: 0.816 hypervisor: 0.816 performance: 0.813 ppc: 0.811 device: 0.806 semantic: 0.805 architecture: 0.802 arm: 0.797 assembly: 0.794 x86: 0.790 debug: 0.786 socket: 0.781 PID: 0.774 boot: 0.774 kernel: 0.770 TCG: 0.764 mistranslation: 0.757 peripherals: 0.756 files: 0.747 network: 0.732 i386: 0.730 QEMU Crashes During Snapshot: bdrv_co_write_req_prepare Assertion child->perm & BLK_PERM_WRITE Failed Description of problem: After taking a external snapshot (w/ memory state) with libvirt, the QEMU process crashed with an assertion ``` qemu-system-x86_64: ../block/io.c:2052: bdrv_co_write_req_prepare: Assertion `child->perm & BLK_PERM_WRITE` failed. ``` Steps to reproduce: 1. Start the qemu process 2. Take an external (w/ memory) snapshot by libvirt Python API ```python domain.snapshotCreateXML(, libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_ATOMIC | libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT | libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_LIVE) ``` 3. The qemu process crashed by hitting the assertion Additional information: Libvirt domain XML ```xml 1a3dabc5-c33b-4308-acc5-2245f3b64163 1a3dabc5-c33b-4308-acc5-2245f3b64163 16777216 16777216 5 qemu qemu hvm destroy restart restart /QVS/usr/bin/qemu-system-x86_64 1a3dabc5c33b4308ac01