summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSasikantha babu <sasikanth.v19@gmail.com>2012-03-21 18:49:00 +0530
committerAvi Kivity <avi@redhat.com>2012-04-05 19:04:08 +0300
commitfea5295324ce7ce6ccfe0909cc6740a2d34aa5a3 (patch)
tree5432558aed1b50dc42f863e357086965e2898c80 /arch
parent7d6e1cb7aed231b58acd71bdbe67fc03221373e4 (diff)
downloadlinux-stable-fea5295324ce7ce6ccfe0909cc6740a2d34aa5a3.tar.gz
linux-stable-fea5295324ce7ce6ccfe0909cc6740a2d34aa5a3.tar.bz2
linux-stable-fea5295324ce7ce6ccfe0909cc6740a2d34aa5a3.zip
KVM: PMU: Fix integer constant is too large warning in kvm_pmu_set_msr()
Signed-off-by: Sasikantha babu <sasikanth.v19@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/pmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/pmu.c b/arch/x86/kvm/pmu.c
index a73f0c104813..173df38dbda5 100644
--- a/arch/x86/kvm/pmu.c
+++ b/arch/x86/kvm/pmu.c
@@ -369,7 +369,7 @@ int kvm_pmu_set_msr(struct kvm_vcpu *vcpu, u32 index, u64 data)
case MSR_CORE_PERF_FIXED_CTR_CTRL:
if (pmu->fixed_ctr_ctrl == data)
return 0;
- if (!(data & 0xfffffffffffff444)) {
+ if (!(data & 0xfffffffffffff444ull)) {
reprogram_fixed_counters(pmu, data);
return 0;
}