mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
filter-rewriter: handle checkpoint and failover event
After one round of checkpoint, the states between PVM and SVM become consistent, so it is unnecessary to adjust the sequence of net packets for old connections, besides, while failover happens, filter-rewriter will into failover mode that needn't handle the new TCP connection. Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com> Signed-off-by: Zhang Chen <zhangckid@gmail.com> Signed-off-by: Zhang Chen <chen.zhang@intel.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
5fbba3d659
commit
24525e93c1
4 changed files with 73 additions and 6 deletions
|
@ -221,3 +221,11 @@ Connection *connection_get(GHashTable *connection_track_table,
|
|||
|
||||
return conn;
|
||||
}
|
||||
|
||||
bool connection_has_tracked(GHashTable *connection_track_table,
|
||||
ConnectionKey *key)
|
||||
{
|
||||
Connection *conn = g_hash_table_lookup(connection_track_table, key);
|
||||
|
||||
return conn ? true : false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue