qemu-nbd: initialize main loop before block layer
commit7e7f4a0efc81258213dc34aeeaade36b0f59d076
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 3 Nov 2012 17:06:26 +0000 (3 18:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Nov 2012 10:33:29 +0000 (12 11:33 +0100)
tree08153e8eb8285f3d642813efa3feee922002a502
parent3c5645fab3c4b65d0cffbe1aaafc787e4be63d0f
qemu-nbd: initialize main loop before block layer

qemu-nbd was broken because they initialized the block layer while
qemu_aio_context was still NULL.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-nbd.c