From: Paolo Bonzini <pbonzini@redhat.com>
To: Or Goshen <oberonc@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Support NBD client under win32/MinGW
Date: Mon, 24 Feb 2014 13:04:34 -0500 (EST) [thread overview]
Message-ID: <1290712841.8456749.1393265074209.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CAKx3GuwW0a-To4E0ptbyPstAspn8XhF0-6NmXxCBsqgi71ZqEQ@mail.gmail.com>
> 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 asynchronous I/O).
This applies not just to sheepdog, also to curl and libiscsi.
Paolo
> BTW, this patch is on behalf of Intel Corp
>
>
> On Mon, Feb 24, 2014 at 11:20 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> > 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)
> >> + lNetworkEvents |= FD_WRITE;
> >> +
> >> + WSAEventSelect(node->pfd.fd, event, lNetworkEvents);
> >> + node->e = (EventNotifier *)event;
> >>
> >
> > As mentioned on IRC, I'd like you to try using the EventNotifier of the
> > AioContext. You shouldn't need any of these casts.
> >
> >
> > ifeq ($(CONFIG_POSIX),y)
> >> -block-obj-y += nbd.o nbd-client.o sheepdog.o
> >> +block-obj-y += nbd-client.o sheepdog.o
> >>
> >
> > nbd-client.c must be compiled on Windows, too.
> >
> > In fact I think you can just drop the ifeq/endif directives.
> >
> >
> > block-obj-$(CONFIG_LIBISCSI) += iscsi.o
> >> block-obj-$(CONFIG_CURL) += curl.o
> >> block-obj-$(CONFIG_RBD) += rbd.o
> >>
> >
> > Also, the patch has wrong indentation. We use 4 space indentation, and
> > never use tabs.
> >
> > Paolo
> >
>
>
>
> --
> Or Goshen
> CTO
> Cerbercomm
> Mob: 972-50-9182418
>
prev parent reply other threads:[~2014-02-24 18:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-24 9:13 [Qemu-devel] [PATCH] Support NBD client under win32/MinGW Or Goshen
2014-02-24 9:20 ` Paolo Bonzini
2014-02-24 13:53 ` Or Goshen
2014-02-24 18:04 ` Paolo Bonzini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1290712841.8456749.1393265074209.JavaMail.zimbra@redhat.com \
--to=pbonzini@redhat.com \
--cc=oberonc@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).