aboutsummaryrefslogtreecommitdiff
path: root/net/trace-events
diff options
context:
space:
mode:
authorZhang Chen <chen.zhang@intel.com>2022-08-22 16:14:36 +0800
committerJason Wang <jasowang@redhat.com>2022-09-02 10:22:39 +0800
commit3772cf0d1b37d32e61dc314e9cc18ff745327ddd (patch)
treeeca63bc9c34b05e6466854bf76f033961ff3a6ce /net/trace-events
parent0e3fdcffead7c651ce06ab50cffb89e806f04e2b (diff)
downloadqemu-3772cf0d1b37d32e61dc314e9cc18ff745327ddd.zip
qemu-3772cf0d1b37d32e61dc314e9cc18ff745327ddd.tar.gz
qemu-3772cf0d1b37d32e61dc314e9cc18ff745327ddd.tar.bz2
net/colo.c: Fix the pointer issue reported by Coverity.
When enabled the virtio-net-pci, guest network packet will load the vnet_hdr. In COLO status, the primary VM's network packet maybe redirect to another VM, it needs filter-redirect enable the vnet_hdr flag at the same time, COLO-proxy will correctly parse the original network packet. If have any misconfiguration here, the vnet_hdr_len is wrong for parse the packet, the data+offset will point to wrong place. Signed-off-by: Zhang Chen <chen.zhang@intel.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/trace-events')
-rw-r--r--net/trace-events2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/trace-events b/net/trace-events
index 6af927b..823a071 100644
--- a/net/trace-events
+++ b/net/trace-events
@@ -9,7 +9,7 @@ vhost_user_event(const char *chr, int event) "chr: %s got event: %d"
# colo.c
colo_proxy_main(const char *chr) ": %s"
-colo_proxy_main_vnet_info(const char *sta, int size) ": %s = %d"
+colo_proxy_main_vnet_info(const char *sta, uint32_t vnet_hdr, int size) ": %s pkt->vnet_hdr_len = %u, pkt->size = %d"
# colo-compare.c
colo_compare_main(const char *chr) ": %s"