All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael R. Hines" <mrhines@linux.vnet.ibm.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: aliguori@us.ibm.com, mst@redhat.com,
	michael.r.hines.mrhines@linux.vnet.ibm.com,
	qemu-devel@nongnu.org, owasserm@redhat.com, abali@us.ibm.com,
	mrhines@us.ibm.com, gokul@us.ibm.com
Subject: Re: [Qemu-devel] [RFC PATCH RDMA support v3: 10/10] Parse RDMA host/port out of the QMP string.
Date: Mon, 11 Mar 2013 12:32:22 -0400	[thread overview]
Message-ID: <513E0716.6020901@linux.vnet.ibm.com> (raw)
In-Reply-To: <513DE395.2040906@redhat.com>

acknowledged....

On 03/11/2013 10:00 AM, Paolo Bonzini wrote:
> Il 11/03/2013 05:33, Michael.R.Hines.mrhines@linux.vnet.ibm.com ha scritto:
>> From: "Michael R. Hines" <mrhines@us.ibm.com>
>>
>> ... want to use existing functions to do this.
> Remember that each of the 10 steps should compile and link, both with
> and without librdmacm installed.  So this should be quite earlier.
>
>> Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
>> ---
>>   include/qemu/sockets.h |    1 +
>>   util/oslib-posix.c     |    4 ++++
>>   util/qemu-sockets.c    |    2 +-
>>   3 files changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h
>> index 6125bf7..86fe4da 100644
>> --- a/include/qemu/sockets.h
>> +++ b/include/qemu/sockets.h
>> @@ -47,6 +47,7 @@ typedef void NonBlockingConnectHandler(int fd, void *opaque);
>>   int inet_listen_opts(QemuOpts *opts, int port_offset, Error **errp);
>>   int inet_listen(const char *str, char *ostr, int olen,
>>                   int socktype, int port_offset, Error **errp);
>> +InetSocketAddress *inet_parse(const char *str, Error **errp);
>>   int inet_connect_opts(QemuOpts *opts, Error **errp,
>>                         NonBlockingConnectHandler *callback, void *opaque);
>>   int inet_connect(const char *str, Error **errp);
>> diff --git a/util/oslib-posix.c b/util/oslib-posix.c
>> index 433dd68..dc369ae 100644
>> --- a/util/oslib-posix.c
>> +++ b/util/oslib-posix.c
>> @@ -137,6 +137,8 @@ void qemu_vfree(void *ptr)
>>   void socket_set_block(int fd)
>>   {
>>       int f;
>> +    if(fd < 0)
>> +        return;
> What is this needed for?  Make it a separate patch and describe the
> rationale in the commit message.
>
>>       f = fcntl(fd, F_GETFL);
>>       fcntl(fd, F_SETFL, f & ~O_NONBLOCK);
>>   }
>> @@ -144,6 +146,8 @@ void socket_set_block(int fd)
>>   void socket_set_nonblock(int fd)
>>   {
>>       int f;
>> +    if(fd < 0)
>> +        return;
>>       f = fcntl(fd, F_GETFL);
>>       fcntl(fd, F_SETFL, f | O_NONBLOCK);
>>   }
>> diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c
>> index 3f12296..58e4bcd 100644
>> --- a/util/qemu-sockets.c
>> +++ b/util/qemu-sockets.c
>> @@ -485,7 +485,7 @@ err:
>>   }
>>   
>>   /* compatibility wrapper */
>> -static InetSocketAddress *inet_parse(const char *str, Error **errp)
>> +InetSocketAddress *inet_parse(const char *str, Error **errp)
>>   {
>>       InetSocketAddress *addr;
>>       const char *optstr, *h;
>>
> Paolo
>

  reply	other threads:[~2013-03-11 16:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1362976414-21396-1-git-send-email-mrhines@us.ibm.com>
     [not found] ` <1362976414-21396-4-git-send-email-mrhines@us.ibm.com>
2013-03-11 11:51   ` [Qemu-devel] [RFC PATCH RDMA support v3: 03/10] documentation of RDMA protocol in docs/rdma.txt Michael S. Tsirkin
2013-03-11 16:24     ` Michael R. Hines
2013-03-11 17:05       ` Michael S. Tsirkin
2013-03-11 17:17         ` Michael R. Hines
2013-03-11 17:19           ` Michael S. Tsirkin
2013-03-11 17:35             ` Michael R. Hines
     [not found] ` <1362976414-21396-3-git-send-email-mrhines@us.ibm.com>
2013-03-11 13:35   ` [Qemu-devel] [RFC PATCH RDMA support v3: 02/10] Link in new migration-rdma.c and rmda.c files Paolo Bonzini
2013-03-11 16:25     ` Michael R. Hines
     [not found] ` <1362976414-21396-9-git-send-email-mrhines@us.ibm.com>
2013-03-11 13:40   ` [Qemu-devel] [RFC PATCH RDMA support v3: 08/10] Introduce QEMUFileRDMA Paolo Bonzini
2013-03-11 16:26     ` Michael R. Hines
2013-03-11 16:26     ` Michael R. Hines
     [not found] ` <1362976414-21396-6-git-send-email-mrhines@us.ibm.com>
2013-03-11 13:41   ` [Qemu-devel] [RFC PATCH RDMA support v3: 05/10] RDMA connection establishment (migration-rdma.c) Paolo Bonzini
2013-03-11 16:28     ` Michael R. Hines
2013-03-11 20:20     ` Michael R. Hines
     [not found] ` <1362976414-21396-7-git-send-email-mrhines@us.ibm.com>
2013-03-11 13:49   ` [Qemu-devel] [RFC PATCH RDMA support v3: 06/10] Introduce 'max_iterations' and Call out to migration-rdma.c when requested Paolo Bonzini
2013-03-11 16:30     ` Michael R. Hines
     [not found] ` <1362976414-21396-8-git-send-email-mrhines@us.ibm.com>
2013-03-11 13:59   ` [Qemu-devel] [RFC PATCH RDMA support v3: 07/10] Send the actual pages over RDMA Paolo Bonzini
2013-03-11 16:31     ` Michael R. Hines
     [not found] ` <1362976414-21396-11-git-send-email-mrhines@us.ibm.com>
2013-03-11 14:00   ` [Qemu-devel] [RFC PATCH RDMA support v3: 10/10] Parse RDMA host/port out of the QMP string Paolo Bonzini
2013-03-11 16:32     ` Michael R. Hines [this message]
     [not found] ` <1362976414-21396-10-git-send-email-mrhines@us.ibm.com>
2013-03-11 14:07   ` [Qemu-devel] [RFC PATCH RDMA support v3: 09/10] Move RAMBlock to cpu-common.h Paolo Bonzini
2013-03-11 16:34     ` Michael R. Hines

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=513E0716.6020901@linux.vnet.ibm.com \
    --to=mrhines@linux.vnet.ibm.com \
    --cc=abali@us.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=gokul@us.ibm.com \
    --cc=michael.r.hines.mrhines@linux.vnet.ibm.com \
    --cc=mrhines@us.ibm.com \
    --cc=mst@redhat.com \
    --cc=owasserm@redhat.com \
    --cc=pbonzini@redhat.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.