Re: [Qemu-devel] [PATCH v5 11/45] Return path: Send responses from destination to source

2015-03-28 Thread Paolo Bonzini
On 10/03/2015 06:47, David Gibson wrote: >> > +void migrate_send_rp_message(MigrationIncomingState *mis, >> > + enum mig_rpcomm_cmd cmd, >> > + uint16_t len, uint8_t *data) > Using (void *) for data would avoid casts in a bunch of the caller

Re: [Qemu-devel] [PATCH v5 11/45] Return path: Send responses from destination to source

2015-03-25 Thread Dr. David Alan Gilbert
* David Gibson (da...@gibson.dropbear.id.au) wrote: > On Tue, Mar 10, 2015 at 02:34:03PM +, Dr. David Alan Gilbert wrote: > > * David Gibson (da...@gibson.dropbear.id.au) wrote: > > > On Wed, Feb 25, 2015 at 04:51:34PM +, Dr. David Alan Gilbert (git) > > > wrote: > > > > From: "Dr. David A

Re: [Qemu-devel] [PATCH v5 11/45] Return path: Send responses from destination to source

2015-03-10 Thread David Gibson
On Tue, Mar 10, 2015 at 02:34:03PM +, Dr. David Alan Gilbert wrote: > * David Gibson (da...@gibson.dropbear.id.au) wrote: > > On Wed, Feb 25, 2015 at 04:51:34PM +, Dr. David Alan Gilbert (git) > > wrote: > > > From: "Dr. David Alan Gilbert" > > > > > > Add migrate_send_rp_message to send

Re: [Qemu-devel] [PATCH v5 11/45] Return path: Send responses from destination to source

2015-03-10 Thread Dr. David Alan Gilbert
* David Gibson (da...@gibson.dropbear.id.au) wrote: > On Wed, Feb 25, 2015 at 04:51:34PM +, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > Add migrate_send_rp_message to send a message from destination to source > > along the return path. > > (It uses a mute

Re: [Qemu-devel] [PATCH v5 11/45] Return path: Send responses from destination to source

2015-03-09 Thread David Gibson
On Wed, Feb 25, 2015 at 04:51:34PM +, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Add migrate_send_rp_message to send a message from destination to source > along the return path. > (It uses a mutex to let it be called from multiple threads) > Add migrate_send_

[Qemu-devel] [PATCH v5 11/45] Return path: Send responses from destination to source

2015-02-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Add migrate_send_rp_message to send a message from destination to source along the return path. (It uses a mutex to let it be called from multiple threads) Add migrate_send_rp_shut to send a 'shut' message to indicate the destination is finished with the RP. Ad