RE: [PATCH v6 5/6] net/colo-compare.c: Check that colo-compare is active

2020-05-22 Thread Zhang, Chen
> -Original Message- > From: Lukas Straub > Sent: Friday, May 22, 2020 2:48 PM > To: qemu-devel > Cc: Zhang, Chen ; Li Zhijian > ; Jason Wang ; Marc- > André Lureau > Subject: [PATCH v6 5/6] net/colo-compare.c: Check that colo-compare is > active > &

[PATCH v6 5/6] net/colo-compare.c: Check that colo-compare is active

2020-05-22 Thread Lukas Straub
If the colo-compare object is removed before failover and a checkpoint happens, qemu crashes because it tries to lock the destroyed event_mtx in colo_notify_compares_event. Fix this by checking if everything is initialized by introducing a new variable colo_compare_active which is protected by a n