From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [RFC] Unify KVM kernel-space and user-space code into a single project Date: Mon, 22 Mar 2010 12:48:24 +0100 Message-ID: <20100322114824.GF3483@elte.hu> References: <20100321191742.GD25922@elte.hu> <4BA67B2F.4030101@redhat.com> <20100321200849.GA51323@dspnet.fr.eu.org> <4BA67D75.8060809@redhat.com> <4BA67F12.6030501@nagafix.co.uk> <4BA68063.2050800@redhat.com> <4BA68234.1060804@nagafix.co.uk> <4BA68997.60406@redhat.com> <20100321212009.GE30194@elte.hu> <4BA70F9A.8030304@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Antoine Martin , Olivier Galibert , 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 To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <4BA70F9A.8030304@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org * Avi Kivity wrote: > > My 10+ years experience with kernel instrumentation solutions is that > > kernel-driven, self-sufficient, robust, trustable, well-enumerated sources > > of information work far better in practice. > > What about line number information? And the source? Into the kernel with > them as well? Sigh. Please read the _very first_ suggestion i made, which solves all that. I rarely go into discussions without suggesting technical solutions - i'm not interested in flaming, i'm interested in real solutions. Here it is, repeated for the Nth time: Allow a guest to (optionally) integrate its VFS namespace with the host side as well. An example scheme would be: /guests/Fedora-G1/ /guests/Fedora-G1/proc/ /guests/Fedora-G1/usr/ /guests/Fedora-G1/.../ /guests/OpenSuse-G2/ /guests/OpenSuse-G2/proc/ /guests/OpenSuse-G2/usr/ /guests/OpenSuse-G2/.../ ( This feature would be configurable and would be default-off, to maintain the current status quo. ) Line number information and the source (dwarf info) and ELF symbols are all provided and accessible via such an interface - no need to run any 'symbol demon' on the guest side. And, obviously, having the guest VFS namespace (optionally) available on the host side also has far more uses than perf's symbol needs. I was surprised no-one ever came up with such a suggestion - it is so obvious to allow the integration of the VFS namespaces. But given your explicit declaration of your KVM desktop usability indifference i'm kind of not surprised about that anymore. Thanks, Ingo