[libvirt] [PATCH 07/12] libxl: Introduce libxlDriverConfig object

Daniel P. Berrange berrange at redhat.com
Mon Sep 2 11:30:04 UTC 2013


On Fri, Aug 30, 2013 at 03:46:53PM -0600, Jim Fehlig wrote:
> The libxlDriverPrivate struct contains an variety of data with
> varying access needs. Similar to the QEMU and LXC drivers,
> move all the static config data into a dedicated libxlDriverConfig
> object. The only locking requirement is to hold the driver lock
> while obtaining an instance of libxlDriverConfig. Once a reference
> is held on the config object, it can be used completely lockless
> since it is immutable.
> 
> Signed-off-by: Jim Fehlig <jfehlig at suse.com>
> ---
>  src/libxl/libxl_conf.c   | 124 ++++++++++++++++++-
>  src/libxl/libxl_conf.h   |  52 +++++---
>  src/libxl/libxl_driver.c | 313 +++++++++++++++++++++++------------------------
>  3 files changed, 309 insertions(+), 180 deletions(-)

ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list