Re: [PATCH 01/15] Change reds_link_mig_target_channels() to take RedsState arg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2016-01-20 at 13:25 +0000, Frediano Ziglio wrote:
> From: Jonathon Jongsma <jjongsma@xxxxxxxxxx>
> 
Acked-by: Pavel Grunt <pgrunt@xxxxxxxxxx>
> ---
>  server/reds.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 0e31b59..52fcb5e 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -1791,7 +1791,7 @@ static void reds_channel_do_link(RedChannel
> *channel, RedClient *client,
>   * not lose any data, we activate the target channels before
>   * migration completes, as soon as we receive
> SPICE_MSGC_MAIN_MIGRATE_DST_DO_SEAMLESS
>   */
> -static int reds_link_mig_target_channels(RedClient *client)
> +static int reds_link_mig_target_channels(RedsState *reds, RedClient
> *client)
>  {
>      RedsMigTargetClient *mig_client;
>      RingItem *item;
> @@ -1837,7 +1837,7 @@ int
> reds_on_migrate_dst_set_seamless(MainChannelClient *mcc, uint32_t
> src_versio
>  
>          red_client_set_migration_seamless(rcc->client);
>          /* linking all the channels that have been connected before
> migration handshake */
> -        reds->dst_do_seamless_migrate =
> reds_link_mig_target_channels(rcc->client);
> +        reds->dst_do_seamless_migrate =
> reds_link_mig_target_channels(reds, rcc->client);
>      }
>      return reds->dst_do_seamless_migrate;
>  }
> @@ -1864,7 +1864,7 @@ void
> reds_on_client_semi_seamless_migrate_complete(RedClient *client)
>                             reds->mouse_mode, reds-
> >is_client_mouse_allowed,
>                             reds_get_mm_time() - MM_TIME_DELTA,
>                             red_dispatcher_qxl_ram_size());
> -    reds_link_mig_target_channels(client);
> +    reds_link_mig_target_channels(reds, client);
>      main_channel_migrate_dst_complete(mcc);
>  }
>  
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]