monitor: eliminate monitor_event_state_lock
commitc20b7fa4b2fedd979bcb0cc974bb5d08a10e3448
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 16 Oct 2013 17:17:08 +0000 (16 19:17 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Fri, 18 Oct 2013 18:23:00 +0000 (18 14:23 -0400)
treea93367075f7625799ff47b0eed7913192abc8027
parentfc8ead74674b7129e8f31c2595c76658e5622197
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>
monitor.c