qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH COLO-Frame v9 32/32] COLO: Add net packets treatment


From: zhanghailiang
Subject: [Qemu-devel] [PATCH COLO-Frame v9 32/32] COLO: Add net packets treatment into COLO
Date: Wed, 2 Sep 2015 16:23:19 +0800

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

Signed-off-by: zhanghailiang <address@hidden>
Signed-off-by: Yang Hongyang <address@hidden>
---
 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

[Prev in Thread] Current Thread [Next in Thread]