From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH V2 5/5] ara virt interface of perf to support kvm guest os statistics collection in guest os Date: Mon, 21 Jun 2010 15:37:04 +0300 Message-ID: <4C1F5CF0.4030206@redhat.com> References: <1277112709.2096.513.camel@ymzhang.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: LKML , kvm@vger.kernel.org, Ingo Molnar , Fr??d??ric Weisbecker , Arnaldo Carvalho de Melo , Cyrill Gorcunov , Lin Ming , Sheng Yang , Marcelo Tosatti , oerg Roedel , Jes Sorensen , Gleb Natapov , Zachary Amsden , zhiteng.huang@intel.com, tim.c.chen@intel.com To: "Zhang, Yanmin" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44033 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756609Ab0FUMhT (ORCPT ); Mon, 21 Jun 2010 08:37:19 -0400 In-Reply-To: <1277112709.2096.513.camel@ymzhang.sh.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On 06/21/2010 12:31 PM, Zhang, Yanmin wrote: > The 5th patch is applied to the latest qemu-kvm tree. > > --- qemu-kvm_0621/target-i386/kvm.c 2010-06-21 11:00:29.000000000 +0800 > +++ qemu-kvm_0621_perf/target-i386/kvm.c 2010-06-21 13:00:14.136999850 +0800 > @@ -150,6 +150,9 @@ struct kvm_para_features { > #ifdef KVM_CAP_PV_MMU > { KVM_CAP_PV_MMU, KVM_FEATURE_MMU_OP }, > #endif > +#ifdef KVM_CAP_PV_PERF > + { KVM_CAP_PV_PERF, KVM_FEATURE_PV_PERF }, > +#endif > { -1, -1 } > }; > > Not really necessary any more - if you expose the cpuid bit via KVM_GET_SUPPORTED_CPUID2 then 'qemu -cpu host' will automatically enable it. On the other hand, do update target-i386/cpuid.c:kvm_feature_name so people can enable the feature using qemu -cpu ...,+kvmperf. -- error compiling committee.c: too many arguments to function