[Spice-devel] [spice PATCH 23/55] spicevmc: send MSG_MIGRATE upon vm migration completion

Yonit Halperin yhalperi at redhat.com
Wed Aug 15 00:56:03 PDT 2012


The above is the default behaviour for red_channel_client, if
client_cbs.migrate is not registered as part of red_channel_register_client_cbs
---
 server/spicevmc.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/server/spicevmc.c b/server/spicevmc.c
index 8bc23fd..a1092d2 100644
--- a/server/spicevmc.c
+++ b/server/spicevmc.c
@@ -317,11 +317,6 @@ static void spicevmc_connect(RedChannel *channel, RedClient *client,
     }
 }
 
-static void spicevmc_migrate(RedChannelClient *rcc)
-{
-    /* NOOP */
-}
-
 SpiceCharDeviceState *spicevmc_device_connect(SpiceCharDeviceInstance *sin,
                                               uint8_t channel_type)
 {
@@ -349,7 +344,6 @@ SpiceCharDeviceState *spicevmc_device_connect(SpiceCharDeviceInstance *sin,
     red_channel_init_outgoing_messages_window(&state->channel);
 
     client_cbs.connect = spicevmc_connect;
-    client_cbs.migrate = spicevmc_migrate;
     red_channel_register_client_cbs(&state->channel, &client_cbs);
 
     char_dev_cbs.read_one_msg_from_device = spicevmc_chardev_read_msg_from_dev;
-- 
1.7.7.6



More information about the Spice-devel mailing list