qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4] log: Make glib logging go through QEMU


From: Christophe Fergeau
Subject: Re: [Qemu-devel] [PATCH v4] log: Make glib logging go through QEMU
Date: Tue, 15 Jan 2019 16:03:31 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

On Tue, Jan 15, 2019 at 02:09:12PM +0000, Stefan Hajnoczi wrote:
> > In these codepaths, I'm confident up to
> > void monitor_vfprintf(FILE *stream, const char *fmt, va_list ap)
> > {
> >     if (cur_mon && !monitor_cur_is_qmp()) {
> >         monitor_vprintf(cur_mon, fmt, ap);
> >     } else {
> >         vfprintf(stream, fmt, ap);
> >     }
> > }
> > 
> > From there, it was not obvious to me whether the monitor_vprintf
> > codepath can be triggered from info/warn/error_report or not. If they
> > can, I'd feel less confident that monitor_vprintf will never indirectly
> > call glib log functions.
> 
> I think we're okay because otherwise monitor_vprintf() ->
> info/warn/error_report() would already be an infinite loop today.

Ah good point :)

Christophe

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]