]> xenbits.xensource.com Git - libvirt.git/commit
libxl: Domain event handler improvements
authorJim Fehlig <jfehlig@suse.com>
Mon, 21 Jan 2013 17:36:03 +0000 (10:36 -0700)
committerJim Fehlig <jfehlig@suse.com>
Fri, 25 Jan 2013 18:38:47 +0000 (11:38 -0700)
commit702911496fd7be9b90988828807e72573d0e9c22
treebb3ddc964d997b2f0c193b6a25be9e3e2f039a65
parent02ed255e2244df050317bd961b3e779ab1b5393c
libxl: Domain event handler improvements

Since libxl provides the domain ID in the event handler callback,
find the domain object based on the ID.  This approach prevents
processing the callback on a domain that has already been reaped.

Also, similar to the xl implementation, ignore the SUSPEND shutdown
reason.  By calling libxl_domain_suspend(), we know a shutdown
event with SUSPEND reason will be generated, but it can be safely
ignored since any subsequent cleanup will be done by the callers.
src/libxl/libxl_driver.c