We will buffer all the net packets that sended by PVM, and release
them during the checkpoint process.

Signed-off-by: zhanghailiang <[email protected]>
Signed-off-by: Yang Hongyang <[email protected]>
---
 migration/colo.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/migration/colo.c b/migration/colo.c
index d7a14ba..f59f6e0 100644
--- a/migration/colo.c
+++ b/migration/colo.c
@@ -22,6 +22,7 @@
 #include "qmp-commands.h"
 #include "qapi-types.h"
 #include "block/block_int.h"
+#include "net/filter.h"
 
 /*
  * The delay time before qemu begin the procedure of default failover 
treatment.
@@ -319,6 +320,8 @@ static int colo_do_checkpoint_transaction(MigrationState *s,
         goto out;
     }
 
+    filter_buffer_release_all();
+
     if (colo_shutdown) {
         qemu_mutex_lock_iothread();
         bdrv_stop_replication_all(false, NULL);
-- 
1.8.3.1



Reply via email to