[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] char: kick main loop after adding a watch
From: |
Richard W.M. Jones |
Subject: |
Re: [Qemu-devel] [PATCH] char: kick main loop after adding a watch |
Date: |
Fri, 31 Mar 2017 18:40:14 +0100 |
User-agent: |
Mutt/1.5.20 (2009-12-10) |
On Fri, Mar 31, 2017 at 07:31:57PM +0200, Paolo Bonzini wrote:
>
>
> On 31/03/2017 19:31, Richard W.M. Jones wrote:
> > On Fri, Mar 31, 2017 at 06:53:56PM +0200, Paolo Bonzini wrote:
> >> glib is expecting QEMU to use g_main_context_acquire around accesses to
> >> GMainContext. However QEMU is not doing that, instead it is taking its
> >> own mutex. So we should add g_main_context_acquire and
> >> g_main_context_release in the two implementations of
> >> os_host_main_loop_wait; these should undo the effect of Frediano's
> >> glib patch.
> >
> > Based on this paragraph, I'm testing the attached patch, and it does
> > also appear to solve the hanging serial port problem.
>
> Great, can you do more testing and/or send the patch formally as a
> toplevel message?
Sure, I'm going to test it a lot more overnight, and then
if it survives all that I'll post it properly.
Thanks,
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top