From: Christophe Fergeau <cfergeau@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v4] log: Make glib logging go through QEMU
Date: Tue, 15 Jan 2019 16:03:31 +0100 [thread overview]
Message-ID: <20190115150331.GK8828@natto.ory.fergeau.eu> (raw)
In-Reply-To: <20190115140912.GA29056@stefanha-x1.localdomain>
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2019-01-15 15:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-14 10:56 [Qemu-devel] [PATCH v4] log: Make glib logging go through QEMU Christophe Fergeau
2019-01-03 10:54 ` Stefan Hajnoczi
2019-01-03 14:14 ` Christophe Fergeau
2019-01-04 15:40 ` Stefan Hajnoczi
2019-01-14 11:54 ` Christophe Fergeau
2019-01-15 14:09 ` Stefan Hajnoczi
2019-01-15 15:03 ` Christophe Fergeau [this message]
2019-01-16 13:56 ` Stefan Hajnoczi
2019-01-21 11:37 ` no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190115150331.GK8828@natto.ory.fergeau.eu \
--to=cfergeau@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).