Received: from eggs.gnu.org ([140.186.70.92]:36631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYMLJ-0006gA-UU for qemu-devel@nongnu.org; Wed, 07 Dec 2011 13:35:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYMLI-0000rw-Sa for qemu-devel@nongnu.org; Wed, 07 Dec 2011 13:35:45 -0500 Received: from gw.ac.upc.edu ([147.83.30.3]:48114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYMLI-0000ra-IB for qemu-devel@nongnu.org; Wed, 07 Dec 2011 13:35:44 -0500 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20111205222208.31271.65662.stgit@ginnungagap.bsc.es> <4EDE9CBE.9080707@codemonkey.ws> <87ehwgvah0.fsf@ginnungagap.bsc.es> <4EDF703E.20401@codemonkey.ws> <87obvkqucc.fsf@ginnungagap.bsc.es> <4EDF8ABB.7010208@codemonkey.ws> <87aa74gvxj.fsf@ginnungagap.bsc.es> <4EDFA6ED.20907@codemonkey.ws> Date: Wed, 07 Dec 2011 19:35:31 +0100 In-Reply-To: <4EDFA6ED.20907@codemonkey.ws> (Anthony Liguori's message of "Wed, 07 Dec 2011 11:48:29 -0600") Message-ID: <87pqg01b7w.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 0/5] backdoor: lightweight guest-to-QEMU backdoor channel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , Zhi Yong Wu , qemu-devel@nongnu.org Anthony Liguori writes: [...] > Why should this analyzer live outside of QEMU in the first place? I fail to see > the rationale for that other than not wanting to do the work of making it > suitable for upstream consumption. For the same reason that SystemTap lets you add user-provided code into the trace hooks, you never know what the user actually wants. The difference is that when dealing with traces that require a high bandwidth, different people may be interested on analyzing different events and under different conditions, and having a JIT in QEMU comes in handy to optimize the traces. This includes the generation of extra tracing code at translation time (e.g., I generate checks in TCG to establish when I want to trace a specific event, and someone else may just want to increment a counter using TCG code). Guest trace instrumentation turns QEMU into a highly-performant tool for dynamic binary instrumentation, with all the benefits that stem from QEMU (support for a myriad of target architectures, as well as support for both full-system and user-level applications). I can understand if someone thinks this is not a desired feature for QEMU [1], but not including it into upstream will just turn it into a patch-based feature that will rapidly fail to apply on top of upstream QEMU. [1] Of course, I will still contribute support for guest tracing, as well as the guest events I added. Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth