From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Shishkin Subject: Re: [PATCH v7 05/13] perf/x86/intel/pt: Introduce a new function to get capability of Intel PT Date: Thu, 3 May 2018 15:13:01 +0300 Message-ID: <20180503121301.nlbm4cotbv26tc7l@um.fi.intel.com> References: <1525349323-9938-1-git-send-email-luwei.kang@intel.com> <1525349323-9938-6-git-send-email-luwei.kang@intel.com> <20180503105032.h73n5lcrwkdbahgm@um.fi.intel.com> <82D7661F83C1A047AF7DC287873BF1E167F6DDCE@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexander Shishkin , "kvm@vger.kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "pbonzini@redhat.com" , "rkrcmar@redhat.com" , "linux-kernel@vger.kernel.org" , "joro@8bytes.org" , "peterz@infradead.org" , "chao.p.peng@linux.intel.com" To: "Kang, Luwei" Return-path: Content-Disposition: inline In-Reply-To: <82D7661F83C1A047AF7DC287873BF1E167F6DDCE@SHSMSX101.ccr.corp.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Thu, May 03, 2018 at 11:04:52AM +0000, Kang, Luwei wrote: > > > New function __pt_cap_get() will be invoked in KVM to check if a > > > specific capability is availiable in KVM guest. > > > Another function pt_cap_get() can only check the hardware capabilities > > > but this may different with KVM guest because some features may not be > > > exposed to guest. > > > > Do we really need both in KVM? > > Yes, KVM need get host capability to estimate if can expose this feature > to guest Can you elaborate on this, what information do we need besides MSR_IA32_VMX_MISC[14]? Thanks, -- Alex