Re: [libvirt-users] domain reinitalization detection

2017-03-07 Thread Matczak, KrzysztofX
One additional question regarding event listening: How to control timeout on call to virEventRunDefaultImpl in event loop ? Default timeout when there are no events is something like 5s , which is way too much for my application. I can't find related examples and API docs are not quite str

Re: [libvirt-users] domain reinitalization detection

2017-03-06 Thread Matczak, KrzysztofX
> Listen to the events I guess that would require running my own polling thread, right ? I wanted to avoid that ... Thanks for help On 06.03.2017 14:14, Matczak, KrzysztofX wrote: > Hello > > I'm trying to find out how to detect if domain was destroyed and brought up > between two time moment

Re: [libvirt-users] domain reinitalization detection

2017-03-06 Thread Michal Privoznik
On 06.03.2017 14:14, Matczak, KrzysztofX wrote: > Hello > > I'm trying to find out how to detect if domain was destroyed and brought up > between two time moments, let's call it reads. > So far the best approach I could find is to compare domain ID from previous > and current read. > And thi

[libvirt-users] domain reinitalization detection

2017-03-06 Thread Matczak, KrzysztofX
Hello I'm trying to find out how to detect if domain was destroyed and brought up between two time moments, let's call it reads. So far the best approach I could find is to compare domain ID from previous and current read. And this is my first question : is that reliable solution ? Or do you