From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [PATCH RFC V2 4/5] kvm guest : Added configuration support to enable debug information for KVM Guests Date: Tue, 25 Oct 2011 11:30:21 -0700 Message-ID: <4EA7003D.8050506@goop.org> References: <20111023190307.16364.35381.sendpatchset@oc5400248562.ibm.com> <20111023190700.16364.7548.sendpatchset@oc5400248562.ibm.com> <4EA53AB2.9050805@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Raghavendra K T , Greg Kroah-Hartman , KVM , Sedat Dilek , Ingo Molnar , Virtualization , "x86@kernel.org" , "H. Peter Anvin" , Dave Jiang , Thomas Gleixner , Stefano Stabellini , Gleb Natapov , Yinghai Lu , Marcelo Tosatti , Xen , Rik van Riel , Konrad Rzeszutek Wilk , LKML , Suzuki Poulose , Srivatsa Vaddagiri , Peter Zijlstra To: Avi Kivity Return-path: In-Reply-To: <4EA53AB2.9050805@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 10/24/2011 03:15 AM, Avi Kivity wrote: > On 10/23/2011 09:07 PM, Raghavendra K T wrote: >> Added configuration support to enable debug information >> for KVM Guests in debugfs >> >> Signed-off-by: Srivatsa Vaddagiri >> Signed-off-by: Suzuki Poulose >> Signed-off-by: Raghavendra K T >> --- >> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >> index 1f03f82..ed34269 100644 >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -562,6 +562,15 @@ config KVM_GUEST >> This option enables various optimizations for running under the KVM >> hypervisor. >> >> +config KVM_DEBUG_FS >> + bool "Enable debug information for KVM Guests in debugfs" >> + depends on KVM_GUEST >> + default n >> + ---help--- >> + This option enables collection of various statistics for KVM guest. >> + Statistics are displayed in debugfs filesystem. Enabling this option >> + may incur significant overhead. >> + >> source "arch/x86/lguest/Kconfig" >> >> > This might be better implemented through tracepoints, which an be > enabled dynamically. Tracepoints use spinlocks, so that could get awkward. J