Re: [Qemu-devel] [PATCH v3 5/6] migration: implement bi-directional RDMA QIOChannel

2018-05-22 Thread 858585 jemmy
ping. On Mon, May 21, 2018 at 7:49 PM, 858585 jemmy wrote: > On Wed, May 16, 2018 at 5:36 PM, 858585 jemmy wrote: >> On Tue, May 15, 2018 at 10:54 PM, Paolo Bonzini wrote: >>> On 05/05/2018 16:35, Lidong Chen wrote: @@ -2635,12 +2637,20 @@ static ssize_t qio_channel_rdma_writev(QIOChannel

Re: [Qemu-devel] [PATCH v3 5/6] migration: implement bi-directional RDMA QIOChannel

2018-05-21 Thread 858585 jemmy
On Wed, May 16, 2018 at 5:36 PM, 858585 jemmy wrote: > On Tue, May 15, 2018 at 10:54 PM, Paolo Bonzini wrote: >> On 05/05/2018 16:35, Lidong Chen wrote: >>> @@ -2635,12 +2637,20 @@ static ssize_t qio_channel_rdma_writev(QIOChannel >>> *ioc, >>> { >>> QIOChannelRDMA *rioc = QIO_CHANNEL_RDMA

Re: [Qemu-devel] [PATCH v3 5/6] migration: implement bi-directional RDMA QIOChannel

2018-05-16 Thread 858585 jemmy
On Tue, May 15, 2018 at 10:54 PM, Paolo Bonzini wrote: > On 05/05/2018 16:35, Lidong Chen wrote: >> @@ -2635,12 +2637,20 @@ static ssize_t qio_channel_rdma_writev(QIOChannel >> *ioc, >> { >> QIOChannelRDMA *rioc = QIO_CHANNEL_RDMA(ioc); >> QEMUFile *f = rioc->file; >> -RDMAContext

Re: [Qemu-devel] [PATCH v3 5/6] migration: implement bi-directional RDMA QIOChannel

2018-05-15 Thread Paolo Bonzini
On 05/05/2018 16:35, Lidong Chen wrote: > @@ -2635,12 +2637,20 @@ static ssize_t qio_channel_rdma_writev(QIOChannel > *ioc, > { > QIOChannelRDMA *rioc = QIO_CHANNEL_RDMA(ioc); > QEMUFile *f = rioc->file; > -RDMAContext *rdma = rioc->rdma; > +RDMAContext *rdma; > int ret; >

[Qemu-devel] [PATCH v3 5/6] migration: implement bi-directional RDMA QIOChannel

2018-05-05 Thread Lidong Chen
This patch implements bi-directional RDMA QIOChannel. Because different threads may access RDMAQIOChannel currently, this patch use RCU to protect it. Signed-off-by: Lidong Chen --- migration/colo.c | 2 + migration/migration.c| 2 + migration/postcopy-ram.c | 2 + migration/ra