KVM: x86/vPMU: Fix unnecessary signed extension for AMD PERFCTRn
authorWei Huang <wei@redhat.com>
Fri, 7 Aug 2015 19:53:30 +0000 (15:53 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 Aug 2015 13:19:41 +0000 (15:19 +0200)
commitb6bb424b407ee0162fc492e6149847d0aa0034ff
tree566babd927b9e7783f76382b62ea6c800962f0f3
parent603242a88ac44771442b077e0c9cb4d3af2b796f
KVM: x86/vPMU: Fix unnecessary signed extension for AMD PERFCTRn

According to AMD programmer's manual, AMD PERFCTRn is 64-bit MSR which,
unlike Intel perf counters, doesn't require signed extension. This
patch removes the unnecessary conversion in SVM vPMU code when PERFCTRn
is being updated.

Signed-off-by: Wei Huang <wei@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/pmu_amd.c