All of lore.kernel.org
 help / color / mirror / Atom feed
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 10:20:11 +0100	[thread overview]
Message-ID: <530B0ECB.8080608@redhat.com> (raw)
In-Reply-To: <1393233201-3636-1-git-send-email-orx.goshen@intel.com>

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

  reply	other threads:[~2014-02-24  9:20 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 [this message]
2014-02-24 13:53   ` Or Goshen
2014-02-24 18:04     ` Paolo Bonzini

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=530B0ECB.8080608@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.