From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: Performance counters in kvm? Date: Tue, 10 Dec 2013 12:59:56 +0200 Message-ID: <20131210105955.GA24218@minantech.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: "Binh Q. Pham" Return-path: Received: from mail-ea0-f181.google.com ([209.85.215.181]:57605 "EHLO mail-ea0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750887Ab3LJLAA (ORCPT ); Tue, 10 Dec 2013 06:00:00 -0500 Received: by mail-ea0-f181.google.com with SMTP id m10so2156710eaj.12 for ; Tue, 10 Dec 2013 02:59:59 -0800 (PST) Content-Disposition: inline In-Reply-To: <52A6131D.8030703@cs.rutgers.edu> Sender: kvm-owner@vger.kernel.org List-ID: 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"? > > 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.