KVM: PMU: Fix raw event check
authorGleb Natapov <gleb@redhat.com>
Sun, 26 Feb 2012 14:55:41 +0000 (16:55 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 8 Mar 2012 12:13:26 +0000 (14:13 +0200)
commitfac3368310765ade6bbdf07c9acdb04210e8b5b0
tree7107571bc81f9716a1463958891deacee274bd30
parenta7b9d2ccc3d86303ee9314612d301966e04011c7
KVM: PMU: Fix raw event check

If eventsel has EDGE, INV or CMASK set we should create raw counter for
it, but the check is done on a wrong variable. Fix it.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/pmu.c