From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Binh Q. Pham" Subject: Re: Performance counters in kvm? Date: Tue, 10 Dec 2013 09:17:04 -0500 Message-ID: <52A72260.5020704@cs.rutgers.edu> References: <20131113175409.GA2088@redhat.com> <5284420E.8070403@cs.rutgers.edu> <20131114071616.GK2008@redhat.com> <5284F7A0.2060700@cs.rutgers.edu> <20131114164630.GB2088@redhat.com> <528502B2.8030605@cs.rutgers.edu> <20131114172136.GC2088@redhat.com> <52853305.5030109@cs.rutgers.edu> <20131114210828.GD2088@redhat.com> <52A6131D.8030703@cs.rutgers.edu> <20131210105955.GA24218@minantech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from dragon.rutgers.edu ([128.6.4.3]:60534 "EHLO dragon.rutgers.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954Ab3LJORG (ORCPT ); Tue, 10 Dec 2013 09:17:06 -0500 In-Reply-To: <20131210105955.GA24218@minantech.com> Sender: kvm-owner@vger.kernel.org List-ID: On 12/10/2013 05:59 AM, Gleb Natapov wrote: > On Mon, Dec 09, 2013 at 01:59:41PM -0500, Binh Q. Pham wrote: >> Sorry for a late response as I was distracted by another task in the >> last few weeks. Today, I compiled and installed QEMU 1.7.0 from >> source, but no luck with this. Tested on a different machine with >> different kernel version: 3.2, I got the same results. > What do you mean by "different kernel version: 3.2"? Oh, previously, I tried with kernel 3.10. Then I had another machine with 3.2, so I tried QEMU 1.7.0 on both, but no luck. > >> Btw, I found bug 798936 which describes similar problem here: >> bugzilla.redhat.com/show_bug.cgi?id=798936 >> >> it seems like this problem has been detected and resolved in the >> past. Do you know what Linux distro/kernel that the bug was resolved >> on? Maybe I can try that instead of using ubuntu to see if it works. >> > The fix is present in QEMU 1.7.0. > >> Thanks, >> Binh >> On 11/14/2013 04:08 PM, Gleb Natapov wrote: >>> On Thu, Nov 14, 2013 at 03:31:01PM -0500, Binh Q. Pham wrote: >>>> My host kernel version is 3.10.17 >>>> >>> That one surely has PMU emulation, but your guest does not see it. I blame >>> QEMU. Can you compile QEMU from git? >>> >>>> Binh >>>> On 11/14/2013 12:21 PM, Gleb Natapov wrote: >>>>> On Thu, Nov 14, 2013 at 12:04:50PM -0500, Binh Q. Pham wrote: >>>>>> cpuid output is attached. >>>>> PMU support is not advertised to the guest which means that either >>>>> QEMU is broken or your host kernel does not have PMU kvm support. What is >>>>> your host kernel version? >>>>> >>>>>> I didn't know that the kernel was not compiled with virtualization >>>>>> support as I was using a ready image from ubuntu website to install >>>>>> the VM. In the long run, are you suggesting me to recompile the >>>>>> kernel for the guest to make sure that it has virtualization >>>>>> support? >>>>>> >>>>> I am surprised ubuntu kernel does not have virtualiztion support >>>>> compiled in. May be they have separate kernel for that, but I am not >>>>> ubuntu user so cannot tell. >>>>> >>>>> >>>>> -- >>>>> Gleb. >>> -- >>> Gleb. >> >> -- >> -Binh >> >> -- >> To unsubscribe from this list: send the line "unsubscribe kvm" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > Gleb.