graphic: 0.910 device: 0.865 performance: 0.733 vnc: 0.706 semantic: 0.678 architecture: 0.661 PID: 0.645 mistranslation: 0.627 network: 0.625 kernel: 0.547 debug: 0.540 risc-v: 0.453 permissions: 0.429 boot: 0.395 ppc: 0.345 socket: 0.339 TCG: 0.326 register: 0.282 user-level: 0.267 arm: 0.267 VMM: 0.218 files: 0.203 virtual: 0.173 hypervisor: 0.169 assembly: 0.145 peripherals: 0.127 i386: 0.124 KVM: 0.026 x86: 0.020 For QEMU 7.0.0-rc1, nbd-server-add fails with qcow2 image with iothread in migration context Description of problem: Upon adding the drive for NBD (via QMP), there is an error message ````kvm: ../block.c:3657: bdrv_open_child: Assertion `qemu_in_main_thread()' failed.```` and then the process aborts. Steps to reproduce: 1. Create image: `qemu-img create -f qcow2 /root/target-disk.qcow2 4G` 2. Start QEMU as mentioned above. 3. Issue `nbd-server-start` QMP command (I used type unix). 4. Issue `nbd-server-add` command for the single disk.