]> xenbits.xensource.com Git - libvirt.git/commit
Replace polling for active VMs with signalling by drivers
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 31 Oct 2012 19:03:55 +0000 (19:03 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 4 Dec 2012 12:14:04 +0000 (12:14 +0000)
commit79b8a56995e6d9ce47e0b44512f7be440df9ff7d
treed5329bcfe1c75a9b8660bda6d9fcc976b4338918
parentae2163f852448fafce3bfcb2814e823d18e394ea
Replace polling for active VMs with signalling by drivers

Currently to deal with auto-shutdown libvirtd must periodically
poll all stateful drivers. Thus sucks because it requires
acquiring both the driver lock and locks on every single virtual
machine. Instead pass in a "inhibit" callback to virStateInitialize
which drivers can invoke whenever they want to inhibit shutdown
due to existance of active VMs.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
26 files changed:
daemon/libvirtd.c
src/Makefile.am
src/driver.h
src/libvirt.c
src/libvirt_internal.h
src/libvirt_private.syms
src/libxl/libxl_conf.h
src/libxl/libxl_driver.c
src/lxc/lxc_conf.h
src/lxc/lxc_driver.c
src/lxc/lxc_process.c
src/network/bridge_driver.c
src/node_device/node_device_hal.c
src/node_device/node_device_udev.c
src/nwfilter/nwfilter_driver.c
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
src/remote/remote_driver.c
src/rpc/virnetserver.c
src/rpc/virnetserver.h
src/secret/secret_driver.c
src/storage/storage_driver.c
src/uml/uml_conf.h
src/uml/uml_driver.c
src/xen/xen_driver.c