]> xenbits.xensource.com Git - qemu-xen.git/commit
monitor: eliminate monitor_event_state_lock
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 16 Oct 2013 17:17:08 +0000 (19:17 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 3 Dec 2013 22:04:30 +0000 (16:04 -0600)
commit7bda8555de4507685bc5713d1239f341718bbf1d
treea34ae19a2828c4d8b3ac86d0dfdf67cabd00288c
parent91a2cf3d0b367c3f009a83637fc5255fdf2cf8eb
monitor: eliminate monitor_event_state_lock

This lock does not protect anything that the BQL does not already
protect.  Furthermore, with -nodefaults and no monitor, the mutex
is not initialized but monitor_protocol_event_queue is called
anyway, which causes a crash under mingw (and only works by luck.
under Linux or other POSIX OSes).

Reported-by: Orx Goshen <orx.goshen@intel.com>
Cc: Daniel Berrange <berrange@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
(cherry picked from commit c20b7fa4b2fedd979bcb0cc974bb5d08a10e3448)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
monitor.c