]> xenbits.xensource.com Git - libvirt.git/commit
qemu: respect locking rules
authorEric Blake <eblake@redhat.com>
Tue, 15 Mar 2011 02:20:53 +0000 (20:20 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 18 Mar 2011 19:32:17 +0000 (13:32 -0600)
commit496084175a78b02312129e0398ec14c5927d75ba
treea1f6f90e8126ceb126117a0e10bc09e2564a19c3
parentb538cdd5a92e3a798ccba105dc410462911dde86
qemu: respect locking rules

THREADS.txt states that the contents of vm should not be read or
modified while the vm lock is not held, but that the lock must not
be held while performing a monitor command.  This fixes all the
offenders that I could find.

* src/qemu/qemu_process.c (qemuProcessStartCPUs)
(qemuProcessInitPasswords, qemuProcessStart): Don't modify or
refer to vm state outside lock.
* src/qemu/qemu_driver.c (qemudDomainHotplugVcpus): Likewise.
* src/qemu/qemu_hotplug.c (qemuDomainChangeGraphicsPasswords):
Likewise.
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_process.c