libvirt/src/libxl
Jim Fehlig e0622ca281 libxl: Fix races in libxl event code
The libxl driver is racy in it's interactions with libxl and libvirt's
event loop.  The event loop can invoke callbacks after libxl has
deregistered the event, and possibly access freed data associated with
the event.

This patch fixes the race by converting libxlDomainObjPrivate to a
virObjectLockable, and locking it while executing libxl upcalls and
libvirt event loop callbacks.

Note that using the virDomainObj lock is not satisfactory since it may
be desirable to hold the virDomainObj lock even when libxl events such
as reading and writing to xenstore need processed.
2013-01-25 11:31:19 -07:00
..
libxl_conf.c Convert libxl driver over to use virPortAllocator APIs 2013-01-16 11:02:58 +00:00
libxl_conf.h libxl: Fix races in libxl event code 2013-01-25 11:31:19 -07:00
libxl_driver.c libxl: Fix races in libxl event code 2013-01-25 11:31:19 -07:00
libxl_driver.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00