From: zhangchen <address@hidden>
add colo-proxy to vl.c and qemu-options.hx
add trace-colo-proxy relation
Signed-off-by: zhangchen <address@hidden>
Signed-off-by: zhanghailiang <address@hidden>
---
qemu-options.hx | 6 ++++++
trace-events | 8 ++++++++
vl.c | 3 ++-
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index 0eea4ee..6daa3f0 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -3670,6 +3670,12 @@ queue @var{all|rx|tx} is an option that can be applied
to any netfilter.
@option{tx}: the filter is attached to the transmit queue of the netdev,
where it will receive packets sent by the netdev.
address@hidden -object colo-proxy,address@hidden,address@hidden,address@hidden:port},address@hidden|secondary}[,address@hidden
+
+Colo-proxy on netdev @var{netdevid},set colo mode @var{primary|secondary}
+connect other colo through address@hidden:port},and colo needs queue all
+packet arriving in address@hidden
+
@item -object
filter-dump,address@hidden,address@hidden,address@hidden,address@hidden
Dump the network traffic on netdev @var{dev} to the file specified by
diff --git a/trace-events b/trace-events
index 5f95b3c..a957fb3 100644
--- a/trace-events
+++ b/trace-events
@@ -1586,6 +1586,14 @@ colo_failover_set_state(int new_state) "new state %d"
colo_start_block_replication(void) "Block replication is started"
colo_stop_block_replication(const char *reason) "Block replication is
stopped(reason: '%s')"
+# net/colo-proxy.c
+colo_proxy(const char *sta) ": %s"