[libvirt] [PATCH v3 10/13] Convert virPCIDeviceList and virUSBDeviceList into virObjectLockable
Jiri Denemark
jdenemar at redhat.com
Tue Feb 5 07:36:30 UTC 2013
On Fri, Feb 01, 2013 at 11:18:32 +0000, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> To allow modifications to the lists to be synchronized, convert
> virPCIDeviceList and virUSBDeviceList into virObjectLockable
> classes. The locking, however, will not be self-contained. The
> users of these classes will have to call virObjectLock/Unlock
> in the critical regions.
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> src/libvirt_private.syms | 2 --
> src/lxc/lxc_hostdev.c | 4 ++--
> src/qemu/qemu_driver.c | 6 +++---
> src/qemu/qemu_hostdev.c | 20 ++++++++++----------
> src/qemu/qemu_hotplug.c | 4 ++--
> src/util/virpci.c | 35 ++++++++++++++++++++++++++---------
> src/util/virpci.h | 2 +-
> src/util/virusb.c | 48 ++++++++++++++++++++++++++++++++----------------
> src/util/virusb.h | 2 +-
> 9 files changed, 77 insertions(+), 46 deletions(-)
ACK
Jirka
More information about the libvir-list
mailing list