From: Paolo Bonzini <pbonzini@redhat.com>
To: Jidong Xiao <jidong.xiao@gmail.com>, KVM <kvm@vger.kernel.org>
Subject: Re: How to know that vPMU is enabled or disabled?
Date: Tue, 24 Jun 2014 22:38:11 +0200 [thread overview]
Message-ID: <53A9E1B3.3010405@redhat.com> (raw)
In-Reply-To: <CAG4AFWY7wRcd2Ro-Gyf=qHFaxkhOn5J2gNrgjCCXng1n9qiSMA@mail.gmail.com>
Il 24/06/2014 10:33, Jidong Xiao ha scritto:
> I think I have figured out this. According to this patch (as well as
> the Intel SDM manual), it looks like pmu is exposed via the cpuid leaf
> 0xah.
>
> https://github.com/torvalds/linux/commit/a6c06ed1a60aff77b27ba558c315c3fed4e35565
>
> Therefore, in the guest os, one can run the cpuid instruction with
> leaf 0xa, and if vpmu is supported/enabled, the return value in
> eax/ebx/ecx/edx should be something non-zero, and in the cloud machine
> which I am using I see these registers are all zero, therefore I think
> vpmu is not supported in my virtual machine. Probably it is masked by
> Qemu.
This is correct. QEMU only enables vPMU if you use "-cpu host".
Paolo
next prev parent reply other threads:[~2014-06-24 20:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-23 17:41 How to know that vPMU is enabled or disabled? Jidong Xiao
2014-06-23 17:47 ` Jidong Xiao
2014-06-24 8:33 ` Jidong Xiao
2014-06-24 20:38 ` Paolo Bonzini [this message]
2014-06-25 4:55 ` Jidong Xiao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53A9E1B3.3010405@redhat.com \
--to=pbonzini@redhat.com \
--cc=jidong.xiao@gmail.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox