Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755892AbZG0J3y (ORCPT ); Mon, 27 Jul 2009 05:29:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755405AbZG0J3x (ORCPT ); Mon, 27 Jul 2009 05:29:53 -0400 Received: from mga11.intel.com ([192.55.52.93]:47022 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753539AbZG0J3w (ORCPT ); Mon, 27 Jul 2009 05:29:52 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.43,276,1246863600"; d="scan'208";a="711351116" From: "Yang, Sheng" Organization: Intel Opensource Technology Center To: Jan Kiszka Subject: Re: cpuinfo and HVM features (was: Host latency peaks due to kvm-intel) Date: Mon, 27 Jul 2009 17:29:11 +0800 User-Agent: KMail/1.11.2 (Linux/2.6.28-13-generic; KDE/4.2.2; x86_64; ; ) Cc: "Anvin, H Peter" , Avi Kivity , Gregory Haskins , "kvm-devel" , RT , Linux Kernel Mailing List , Andi Kleen , Ingo Molnar References: <4A68A6E5.6010808@siemens.com> <200907270912.00470.sheng.yang@intel.com> <4A6D6E9A.6030400@siemens.com> In-Reply-To: <4A6D6E9A.6030400@siemens.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907271729.13142.sheng.yang@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2902 Lines: 73 On Monday 27 July 2009 17:08:42 Jan Kiszka wrote: > [ carrying this to LKML ] > > Yang, Sheng wrote: > > On Monday 27 July 2009 03:16:27 H. Peter Anvin wrote: > >> Jan Kiszka wrote: > >>> Avi Kivity wrote: > >>>> On 07/24/2009 12:41 PM, Jan Kiszka wrote: > >>>>> I vaguely recall that someone promised to add a feature reporting > >>>>> facility for all those nice things, modern VM-extensions may or may > >>>>> not support (something like or even an extension of /proc/cpuinfo). > >>>>> What is the state of this plan? Would be specifically interesting for > >>>>> Intel CPUs as there seem to be many of them out there with > >>>>> restrictions for special use cases - like real-time. > >>>> > >>>> Newer kernels do report some vmx features (like flexpriority) in > >>>> /proc/cpuinfo but not all. > >>> > >>> Ah, nice. Then we just need this? > >> > >> Fine with me. > >> > >> Acked-by: H. Peter Anvin > >> > >> However, I guess the real question if we shouldn't export ALL VMX > >> features in a consistent way instead? > > > > When I add feature reporting to cpuinfo, I just put highlight features > > there, otherwise the VMX feature list would at least as long as CPU one. > > That could become true. But the question is always what the highlights > are. Often this depends on the hypervisor as it may implement > workarounds for missing features differently (or not at all). So I'm > also for exposing feature information consistently. (CC Andi and Ingo) The highlight means the feature we would gain a lot, like FlexPriority, EPT, VPID. They can be vendor specific. And I am talking about hardware capability here, so what's hypervisor did for workaround is not in scope. > > > I have also suggested another field for virtualization feature for it, > > but some concern again userspace tools raised. > > > > For we got indeed quite a lot features, and would get more, would it > > better to export the part of struct vmcs_config entries(that's > > pin_based_exec_ctrl, cpu_based_exec_ctrl, and cpu_based_2nd_exec_ctrl) > > through > > sys/module/kvm_intel/? Put every feature to cpuinfo seems not that > > necessary for such a big list. > > I don't think this information should only come from KVM. Consider you > didn't build it into some kernel but still want to find out what your > system is able to provide. Yes, agree. > > What about adding some dedicated /proc entry for CPU virtualization > features, say /proc/hvminfo? Well, compared to this, I may still prefer a new item in /proc/cpuinfo, for it's still CPU feature, like Andi did for power management(IIRC). Any more preferred location? -- regards Yang, Sheng -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/