From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFC] Unify KVM kernel-space and user-space code into a single project Date: Mon, 22 Mar 2010 22:43:54 +0200 Message-ID: <4BA7D68A.8090104@redhat.com> References: <20100322143212.GE14201@elte.hu> <4BA7821C.7090900@codemonkey.ws> <20100322155505.GA18796@elte.hu> <4BA796DF.7090005@redhat.com> <20100322165107.GD18796@elte.hu> <4BA7A406.9050203@redhat.com> <20100322173400.GB15795@elte.hu> <4BA7B87A.8060104@codemonkey.ws> <20100322192259.GD21919@elte.hu> <4BA7C4FF.3080407@codemonkey.ws> <20100322203215.GB18126@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Anthony Liguori , Pekka Enberg , "Zhang, Yanmin" , Peter Zijlstra , Sheng Yang , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Marcelo Tosatti , oerg Roedel , Jes Sorensen , Gleb Natapov , Zachary Amsden , ziteng.huang@intel.com, Arnaldo Carvalho de Melo , Fr?d?ric Weisbecker , Gregory Haskins To: Ingo Molnar Return-path: Received: from mx1.redhat.com ([209.132.183.28]:38513 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755930Ab0CVUoc (ORCPT ); Mon, 22 Mar 2010 16:44:32 -0400 In-Reply-To: <20100322203215.GB18126@elte.hu> Sender: kvm-owner@vger.kernel.org List-ID: On 03/22/2010 10:32 PM, Ingo Molnar wrote: > * Anthony Liguori wrote: > > >> On 03/22/2010 02:22 PM, Ingo Molnar wrote: >> >>>> Transitive had a product that was using a KVM context to run their >>>> binary translator which allowed them full access to the host >>>> processes virtual address space range. In this case, there is no >>>> kernel and there are no devices. >>>> >>> And your point is that such vcpus should be excluded from profiling just >>> because they fall outside the Qemu/libvirt umbrella? >>> >> You don't instrument it the way you'd instrument an operating system so no, >> you don't want it to show up in perf kvm top. >> > Erm, why not? It's executing a virtualized CPU, so sure it makes sense to > allow the profiling of it! > It may not make sense to have symbol tables for it, for example it isn't generated from source code but from binary code for another architecture. Of course, just showing addresses is fine, but you don't need qemu for that. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.