]> xenbits.xensource.com Git - libvirt.git/commit
Protect USB/PCI device list access in QEMU with dedicated locks
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 16 Jan 2013 12:09:58 +0000 (12:09 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 5 Feb 2013 19:22:26 +0000 (19:22 +0000)
commit011cf7ad1029ec6d0c181914e54a06b1289bcae3
treebb35523c5147da6d567314186f55c723bdffb7d2
parent0f9ef55814f4f446bc57a20850c9d9a6953c1e24
Protect USB/PCI device list access in QEMU with dedicated locks

Currently the activePciHostdevs, inactivePciHostdevsd and
activeUsbHostdevs lists are all implicitly protected by the
QEMU driver lock. Now that the lists all inherit from the
virObjectLockable, we can make the locking explicit, removing
the dependency on the QEMU driver lock for correctness.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_driver.c
src/qemu/qemu_hostdev.c
src/qemu/qemu_hotplug.c