Orit Wasserman <owass...@redhat.com> wrote:
> From: "Michael S. Tsirkin" <m...@redhat.com>
>
> refactor address resolution code to fix nonblocking connect
> remove getnameinfo call
>
> Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
> Signed-off-by: Amos Kong <ak...@redhat.com>
> Signed-off-by: Orit Wasserman <owass...@redhat.com>

Reviewed-by: Juan Quintela <quint...@redhat.com> 

> -int inet_connect_opts(QemuOpts *opts, bool *in_progress, Error **errp)
> +#ifdef _WIN32
> +#define QEMU_SOCKET_RC_INPROGRESS(rc) \
> +    ((rc) == -EINPROGRESS || rc == -EWOULDBLOCK || rc == -WSAEALREADY)
> +#else
> +#define QEMU_SOCKET_RC_INPROGRESS(rc) \
> +    ((rc) == -EINPROGRESS)
> +#endif

Not specific to this series, but this is used all around in qemu.
Should we put it into osdep.h and refactor?


Reply via email to