]> Git Repo - qemu.git/blobdiff - net/colo.c
tcg: add "-accel tcg,tb-size" and deprecate "-tb-size"
[qemu.git] / net / colo.c
index 97c8fc928f10f9768048aa2a5c6c7e99f2e81d7c..8196b358370c721af4f14ae852874c50d7e1e29d 100644 (file)
@@ -15,6 +15,7 @@
 #include "qemu/osdep.h"
 #include "trace.h"
 #include "colo.h"
+#include "util.h"
 
 uint32_t connection_key_hash(const void *opaque)
 {
@@ -221,3 +222,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;
+}
This page took 0.025243 seconds and 4 git commands to generate.