From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlP41-0003gh-81 for qemu-devel@nongnu.org; Fri, 25 Aug 2017 20:35:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlP3w-0004IP-IS for qemu-devel@nongnu.org; Fri, 25 Aug 2017 20:35:01 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51351) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlP3v-0004I3-Tu for qemu-devel@nongnu.org; Fri, 25 Aug 2017 20:34:56 -0400 Date: Fri, 25 Aug 2017 20:34:54 -0400 From: "Emilio G. Cota" Message-ID: <20170826003454.GA23546@flamenco> References: <150142369849.12995.11229612194223213120.stgit@frigg.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <150142369849.12995.11229612194223213120.stgit@frigg.lan> Subject: Re: [Qemu-devel] [PATCH v8 0/5] hypertrace: Lightweight guest-to-QEMU trace channel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Llu=EDs?= Vilanova Cc: qemu-devel@nongnu.org, Stefan Hajnoczi , Luiz Capitulino On Sun, Jul 30, 2017 at 17:08:18 +0300, Lluís Vilanova wrote: > The hypertrace channel allows guest code to emit events in QEMU (the host) using > its tracing infrastructure (see "docs/trace.txt"). This works in both 'system' > and 'user' modes, is architecture-agnostic and introduces minimal noise on the > guest. > > See first commit for a full description, use-cases and an example. > > Signed-off-by: Lluís Vilanova This would be indeed very useful once TCG instrumentation is in place. However, I'm not very excited about this being PCI-only and Linux-only for system mode I wonder how we could make this work on all hosts -- did you consider using "magic" instructions? We'd need a different magic instruction for each guest ISA, but the library would hide that anyway (and the library code would be the same for user and system modes). Thanks, Emilio