[Qemu-devel] [PATCH] Support NBD client under win32/MinGW

2014-02-24 Thread Or Goshen
From: Or Goshen ober...@gmail.com --- aio-win32.c | 244 +-- block/Makefile.objs |4 +- block/nbd-client.h |2 +- include/block/aio.h |2 - include/block/nbd.h |2 +- main-loop.c |2 - nbd.c |

Re: [Qemu-devel] [PATCH] Support NBD client under win32/MinGW

2014-02-24 Thread Paolo Bonzini
Il 24/02/2014 10:13, Or Goshen ha scritto: + /* Create event */ + HANDLE event = WSACreateEvent(); + long lNetworkEvents = 0; + + if (node-io_read) + lNetworkEvents |= FD_READ; + if (node-io_write) +

Re: [Qemu-devel] [PATCH] Support NBD client under win32/MinGW

2014-02-24 Thread Or Goshen
I never used/tested sheepdog under windows with my patch, so I wouldnt know if it doesnt have any additional bugs under windows. BTW, this patch is on behalf of Intel Corp On Mon, Feb 24, 2014 at 11:20 AM, Paolo Bonzini pbonz...@redhat.com wrote: Il 24/02/2014 10:13, Or Goshen ha scritto:

Re: [Qemu-devel] [PATCH] Support NBD client under win32/MinGW

2014-02-24 Thread Paolo Bonzini
I never used/tested sheepdog under windows with my patch, so I wouldnt know if it doesnt have any additional bugs under windows. If it compiles, you can include it. Worst of all, people will find bugs. It used to be enabled for Windows when NBD was also enabled (before the introduction of