]> xenbits.xensource.com Git - libvirt.git/commit
libxl: remove per-domain libxl_ctx
authorJim Fehlig <jfehlig@suse.com>
Wed, 11 Feb 2015 23:40:07 +0000 (16:40 -0700)
committerJim Fehlig <jfehlig@suse.com>
Tue, 24 Mar 2015 21:03:55 +0000 (15:03 -0600)
commita5bf06ba34dbb226ac1b2fb63f5026c5d493bc65
tree685e7c780784c1ee92246cdb67b920e3e2564354
parent6728645a41b714488c1aa541f03883b0693899d1
libxl: remove per-domain libxl_ctx

Although needed in the Xen 4.1 libxl days, there is no longer any
benefit to having per-domain libxl_ctx.  On the contrary, their use
makes the code unecessarily complicated and prone to deadlocks under
load.  As suggested by the libxl maintainers, use a single libxl_ctx
as a handle to libxl instead of per-domain ctx's.

One downside to using a single libxl_ctx is there are no longer
per-domain log files for log messages emitted by libxl.  Messages
for all domains will be sent to /var/log/libvirt/libxl/libxl-driver.log.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_domain.c
src/libxl/libxl_domain.h
src/libxl/libxl_driver.c
src/libxl/libxl_migration.c