diff options
author | Gleb Natapov <gleb@redhat.com> | 2012-02-26 16:55:40 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-08 14:13:18 +0200 |
commit | a7b9d2ccc3d86303ee9314612d301966e04011c7 (patch) | |
tree | 955dc7c9346e4aa34dddff9b1d3dd54253d783d0 /arch/x86/kvm | |
parent | 9ee73970c03edb68146ceb1ba2a7033c99a5e017 (diff) | |
download | linux-stable-a7b9d2ccc3d86303ee9314612d301966e04011c7.tar.gz linux-stable-a7b9d2ccc3d86303ee9314612d301966e04011c7.tar.bz2 linux-stable-a7b9d2ccc3d86303ee9314612d301966e04011c7.zip |
KVM: PMU: warn when pin control is set in eventsel msr
Print warning once if pin control bit is set in eventsel msr since
emulation does not support it yet.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/pmu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/pmu.c b/arch/x86/kvm/pmu.c index 3e48c1d3edcd..6af9a542e541 100644 --- a/arch/x86/kvm/pmu.c +++ b/arch/x86/kvm/pmu.c @@ -210,6 +210,9 @@ static void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel) unsigned config, type = PERF_TYPE_RAW; u8 event_select, unit_mask; + if (eventsel & ARCH_PERFMON_EVENTSEL_PIN_CONTROL) + printk_once("kvm pmu: pin control bit is ignored\n"); + pmc->eventsel = eventsel; stop_counter(pmc); |