qemu-char: initialize out_lock
PATCH 1/1 qemu-char: initialize out_lock
Otherwise, Windows fails with a deadlock.
Reported-by Stefan Weil <[email protected]>
Signed-off-by Paolo Bonzini <[email protected]>
--- qemu-char.c | 1 + 1 file changed, 1 insertion(+)
qemu-char.c +1 -0
@@ -94,6 +94,7 @@ static QTAILQ_HEAD(CharDriverStateHead, CharDriverState) chardevs =CharDriverState *qemu_chr_alloc (void ) {CharDriverState *chr =g_malloc0 (sizeof (CharDriverState)); +qemu_mutex_init (&chr->chr_write_lock);return chr; }
Signature · 1 line
1.9.3
Am 25.06.2014 09:04, schrieb Paolo Bonzini:
Quoted 13 lines
Otherwise, Windows fails with a deadlock.
Reported-by Stefan Weil <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- qemu-char.c | 1 + 1 file changed, 1 insertion(+)qemu-char.c +0
-0
qemu-char.c static QTAILQ_HEAD(CharDriverStateHead, CharDriverState) chardevs = · line 100
Quoted 7 lines
qemu-char.c +1
-0@@ -94,6 +94,7 @@ static QTAILQ_HEAD(CharDriverStateHead, CharDriverState) chardevs =CharDriverState *qemu_chr_alloc (void ) {CharDriverState *chr =g_malloc0 (sizeof (CharDriverState)); +qemu_mutex_init (&chr->chr_write_lock);return chr; }
Thanks, this fixes the problem with QEMU for Windows.
Tested-by Stefan Weil <[email protected]>
Peter Maydell
AppliedQuoted 4 lines · Paolo Bonzini
Otherwise, Windows fails with a deadlock.
Reported-by Stefan Weil <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>
Applied to master (with s/out_lock/chr_write_lock/ in the subject); thanks.
-- PMM