projects
/
wrapfs-3.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6429d86
)
KVM: x86 emulator: correctly mask pmc index bits in RDPMC instruction emulation
author
Gleb Natapov
<gleb@redhat.com>
Wed, 9 May 2012 13:10:41 +0000
(16:10 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:20 +0000
(09:32 -0700)
(cherry picked from commit
270c6c79f4e15e599f47174ecedad932463af7a2
)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/pmu.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/pmu.c
b/arch/x86/kvm/pmu.c
index 7aad5446f393def644e685c76dbfcd72e6b2711c..3e48c1d3edcdebea6578de7f90df8a60fd6fc5e5 100644
(file)
--- a/
arch/x86/kvm/pmu.c
+++ b/
arch/x86/kvm/pmu.c
@@
-413,7
+413,7
@@
int kvm_pmu_read_pmc(struct kvm_vcpu *vcpu, unsigned pmc, u64 *data)
struct kvm_pmc *counters;
u64 ctr;
- pmc &=
(3u << 30) - 1
;
+ pmc &=
~(3u << 30)
;
if (!fixed && pmc >= pmu->nr_arch_gp_counters)
return 1;
if (fixed && pmc >= pmu->nr_arch_fixed_counters)