mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
colo-compare: introduce packet comparison thread
If primary packet is same with secondary packet, we will send primary packet and drop secondary packet, otherwise notify COLO frame to do checkpoint. If primary packet comes but secondary packet does not, after REGULAR_PACKET_CHECK_MS milliseconds we set the primary packet as old_packet,then do a checkpoint. Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com> Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com> Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
@ -143,6 +143,7 @@ Packet *packet_new(const void *data, int size)
|
||||
|
||||
pkt->data = g_memdup(data, size);
|
||||
pkt->size = size;
|
||||
pkt->creation_ms = qemu_clock_get_ms(QEMU_CLOCK_HOST);
|
||||
|
||||
return pkt;
|
||||
}
|
||||
|
Reference in New Issue
Block a user