Re: [libvirt] [PATCHv7 14/18] util: Add function for checking if monitor is running

2018-11-12 Thread Wang, Huaqiang
This patch is added previously because I though the vcpupid would be changed during libvirt re-connection, and if vcpupid is changed and libvirt is not aware of this change it will make monitor working on an stale *tasks file and monitor will get wrong cache information. But the vcpuid

Re: [libvirt] [PATCHv7 14/18] util: Add function for checking if monitor is running

2018-11-05 Thread John Ferlan
On 10/22/18 4:01 AM, Wang Huaqiang wrote: > Check whether monitor is running by checking the monitor's PIDs status. > > Monitor is looked as running normally if the vcpu PID list matches with > the content of monitor's 'tasks' file. > > Signed-off-by: Wang Huaqiang > --- >

[libvirt] [PATCHv7 14/18] util: Add function for checking if monitor is running

2018-10-22 Thread Wang Huaqiang
Check whether monitor is running by checking the monitor's PIDs status. Monitor is looked as running normally if the vcpu PID list matches with the content of monitor's 'tasks' file. Signed-off-by: Wang Huaqiang --- src/libvirt_private.syms | 1 + src/util/virresctrl.c| 102