]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Integrate the QEMU driver with the lock manager infrastructure
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 26 Oct 2010 14:04:46 +0000 (15:04 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 2 Jun 2011 09:54:01 +0000 (10:54 +0100)
commit12317957ecd6c37a2fb16275dcdeeacfe25c517e
treeb05657991d4f2e015eb0c826baa70360b21d0b02
parent395793a8ecf41cb52eb6bdd150ad31c1fb447963
Integrate the QEMU driver with the lock manager infrastructure

The QEMU integrates with the lock manager instructure in a number
of key places

 * During startup, a lock is acquired in between the fork & exec
 * During startup, the libvirtd process acquires a lock before
   setting file labelling
 * During shutdown, the libvirtd process acquires a lock
   before restoring file labelling
 * During hotplug, unplug & media change the libvirtd process
   holds a lock while setting/restoring labels

The main content lock is only ever held by the QEMU child process,
or libvirtd during VM shutdown. The rest of the operations only
require libvirtd to hold the metadata locks, relying on the active
QEMU still holding the content lock.

* src/qemu/qemu_conf.c, src/qemu/qemu_conf.h,
  src/qemu/libvirtd_qemu.aug, src/qemu/test_libvirtd_qemu.aug:
  Add config parameter for configuring lock managers
* src/qemu/qemu_driver.c: Add calls to the lock manager
src/qemu/libvirtd_qemu.aug
src/qemu/qemu.conf
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_process.c
src/qemu/test_libvirtd_qemu.aug