Received: from eggs.gnu.org ([2001:4830:134:3::10]:43824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqdta-0007P9-7x for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:16:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqdtX-0002gZ-0K for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:16:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqdtW-0002gV-SK for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:16:46 -0400 From: Markus Armbruster References: <1444894224-9542-1-git-send-email-den@openvz.org> Date: Mon, 26 Oct 2015 10:16:44 +0100 In-Reply-To: <1444894224-9542-1-git-send-email-den@openvz.org> (Denis V. Lunev's message of "Thu, 15 Oct 2015 10:30:21 +0300") Message-ID: <87twpe0z2b.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 0/3] QEMU logging improvements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: Peter Maydell , Luiz Capitulino , qemu-devel@nongnu.org, Pavel Butsykin "Denis V. Lunev" writes: > The following is done: > - QMP/HMP events are now logged > - timestamp is added to the log message > - arguments of qemu_log/qemu_log_mask are not calculated now if the log > is disabled > > These patches are sent in the hope that it is not too late for QEMU 2.5. > > Logging subsystem in QEMU looks rudimentary to me and should be definitely > improved, f.e. log on stalled NFS could ruin the system completely. Anyway, > it is too late for this at the moment. Logging QMP traffic makes sense to me. However, I don't think logging QMP/HMP traffic to the existing -D logfile is a good idea, because in its current state, that logfile is mostly for TCG tracing. Regardless, this series has led to a fruitful (I think) discussion of logging and tracing ("What's the intended use of log.h logging?"), and then to Paolo's "[PATCH 0/9] simplify usage of tracepoints, and connect them to logging". Let's see where this leads us, and how much we can still do for 2.5.