From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Binh Q. Pham" Subject: Re: Performance counters in kvm? Date: Mon, 09 Dec 2013 13:59:41 -0500 Message-ID: <52A6131D.8030703@cs.rutgers.edu> References: <5283AE31.1000303@cs.rutgers.edu> <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> 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]:46587 "EHLO dragon.rutgers.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932286Ab3LIS7q (ORCPT ); Mon, 9 Dec 2013 13:59:46 -0500 In-Reply-To: <20131114210828.GD2088@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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. 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. 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