Kim Larry
2014-Feb-18 10:12 UTC
Re: [libvirt-users] event-test.py cannot detects domain shutdown
2014년 2월 11일 오후 10:00에 Eric Blake <eblake@redhat.com> 작성: On 02/11/2014 12:20 AM, Kim Larry wrote: libvirtd version is 1.1.4 and using Xen for hypervisor. I'm not as familiar with the xen hypervisor as with qemu; it may just be the case that no one has coded the xen driver to send a shutdown event. At any rate, I can confirm that with the qemu driver, shutdown events are delivered. It is a bit weird that all except shutdown event are coded... If it is true, do I have to just wait? https://rwmj.wordpress.com/2010/11/08/want-help-dont-email-me-directly/ Or you could look into the source code and provide a patch; but discussing this on the list is a better way to get a reaction from someone familiar with the xen code. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org Ah, I forgot to add libvirt-users in Cc... sorry. The thing I found today is that if libvirt uses xend driver, shutdown events are delivered, but if libvirt uses libxl drvier, doesn't show up anything. It seems there are bugs on shutdown event, so I did dig into the libvirt source briefly, but I couldn't find where libxl driver calls event callback. Any help will be greatly appreciated. Especially someone who is familiar with xen code.
Cole Robinson
2014-Feb-18 14:23 UTC
Re: [libvirt-users] event-test.py cannot detects domain shutdown
On 02/18/2014 05:12 AM, Kim Larry wrote:> 2014년 2월 11일 오후 10:00에 Eric Blake <eblake@redhat.com> 작성: > >> On 02/11/2014 12:20 AM, Kim Larry wrote: >> >>>>> libvirtd version is 1.1.4 and using Xen for hypervisor. >>>> I'm not as familiar with the xen hypervisor as with qemu; it may just be >>>> the case that no one has coded the xen driver to send a shutdown event. >>>> At any rate, I can confirm that with the qemu driver, shutdown events >>>> are delivered. >> >>> It is a bit weird that all except shutdown event are coded... >>> If it is true, do I have to just wait? >> >> https://rwmj.wordpress.com/2010/11/08/want-help-dont-email-me-directly/ >> >> Or you could look into the source code and provide a patch; but >> discussing this on the list is a better way to get a reaction from >> someone familiar with the xen code. >> >> -- >> Eric Blake eblake redhat com +1-919-301-3266 >> Libvirt virtualization library http://libvirt.org > > > Ah, I forgot to add libvirt-users in Cc... sorry. > > The thing I found today is that if libvirt uses xend driver, shutdown events > are delivered, but if libvirt uses libxl drvier, doesn't show up anything. It > seems there are bugs on shutdown event, so I did dig into the libvirt source > briefly, but I couldn't find where libxl driver calls event callback. > > Any help will be greatly appreciated. Especially someone who is familiar with > xen code. >Jim, does this sound familiar? - Cole
Jim Fehlig
2014-Feb-19 03:45 UTC
Re: [libvirt-users] event-test.py cannot detects domain shutdown
Cole Robinson wrote:> On 02/18/2014 05:12 AM, Kim Larry wrote: > >> The thing I found today is that if libvirt uses xend driver, shutdown events >> are delivered, but if libvirt uses libxl drvier, doesn't show up anything. It >> seems there are bugs on shutdown event, so I did dig into the libvirt source >> briefly, but I couldn't find where libxl driver calls event callback. >> >> Any help will be greatly appreciated. Especially someone who is familiar with >> xen code. >> >> > > Jim, does this sound familiar? >Looks like the event handler only queues a crashed event when receiving the shutdown event from libxl. The attached patch should fix it, but I think the logic could be further improved. I'll look at doing that tomorrow. Regards, Jim