From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [PATCH v1 0/4] Enable LBR for the guest Date: Tue, 26 Sep 2017 09:51:37 -0700 Message-ID: <20170926165137.GR4311@tassilo.jf.intel.com> References: <1506314696-4632-1-git-send-email-wei.w.wang@intel.com> <20170925145908.GN4311@tassilo.jf.intel.com> <59CA1417.7070602@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, pbonzini@redhat.com, mst@redhat.com, rkrcmar@redhat.com, mingo@redhat.com To: Wei Wang Return-path: Content-Disposition: inline In-Reply-To: <59CA1417.7070602@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org > On the other side, it seems that the (guest) kernel driver also works > without > the above being supported, should we change it to report error and stop > using the PMU features when the check of the above two fails (at > intel_pmu_init())? You could add the extra check for the LBR code yes, although it already checks if the LBR MSRs work, so in practice it's likely already covered. -Andi