]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-nbd.c
target/arm: Use get_phys_addr_with_struct for stage2
[mirror_qemu.git] / qemu-nbd.c
index 6ff45308a9ce26e00dab861b6861b57d5e4e1635..4276163564bcb877fb59f11ed2a1ca4853202f2c 100644 (file)
@@ -1071,7 +1071,11 @@ int main(int argc, char **argv)
         qdict_put_str(raw_opts, "driver", "raw");
         qdict_put_str(raw_opts, "file", bs->node_name);
         qdict_put_int(raw_opts, "offset", dev_offset);
+
+        aio_context_acquire(qemu_get_aio_context());
         bs = bdrv_open(NULL, NULL, raw_opts, flags, &error_fatal);
+        aio_context_release(qemu_get_aio_context());
+
         blk_remove_bs(blk);
         blk_insert_bs(blk, bs, &error_fatal);
         bdrv_unref(bs);