]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Introduce a virQEMUDriverConfigPtr object
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 10 Jan 2013 21:03:14 +0000 (21:03 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 5 Feb 2013 15:49:25 +0000 (15:49 +0000)
commitb090aa7d559a31b353a546dddfa37aff0655f668
tree2bda727148eadf6b175f120d9d8f5a7989e239c7
parent25ea8e47e74def560bf89cd94dd54b75ca5ff4d6
Introduce a virQEMUDriverConfigPtr object

Currently the virQEMUDriverPtr struct contains an wide variety
of data with varying access needs. Move all the static config
data into a dedicated virQEMUDriverConfigPtr object. The only
locking requirement is to hold the driver lock, while obtaining
an instance of virQEMUDriverConfigPtr. Once a reference is held
on the config object, it can be used completely lockless since
it is immutable.

NB, not all APIs correctly hold the driver lock while getting
a reference to the config object in this patch. This is safe
for now since the config is never updated on the fly. Later
patches will address this fully.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
15 files changed:
src/qemu/qemu_cgroup.c
src/qemu/qemu_command.c
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/qemu/qemu_hostdev.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_migration.c
src/qemu/qemu_process.c
src/qemu/qemu_process.h
tests/qemuargv2xmltest.c
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.args
tests/qemuxml2argvtest.c
tests/qemuxmlnstest.c