Re: [Qemu-devel] [PATCH 2/2] NBD: Convert the NBD driver to use the AIO interface.

2011-05-03 Thread Nicholas Thomas
On Thu, 2011-04-28 at 16:20 +0100, n...@bytemark.co.uk wrote: [...] > +static void nbd_unregister_write_request_handler(BDRVNBDState *s) > +{ > +int sock = s->sock; > +if (s->sock == -1) { > +logout("Unregister write request handler tried when socket closed\n"); > +return

[Qemu-devel] [PATCH 2/2] NBD: Convert the NBD driver to use the AIO interface.

2011-04-28 Thread nick
From: Nick Thomas This preserves the previous behaviour where the NBD server is unavailable or goes away during guest execution, but switches the NBD backend to present the AIO interface instead of the sync IO interface. We also split read & write requests into 1 MiB blocks (minus header). This