KVM: PMU: Fix integer constant is too large warning in kvm_pmu_set_msr()
authorSasikantha babu <sasikanth.v19@gmail.com>
Wed, 21 Mar 2012 13:19:00 +0000 (18:49 +0530)
committerAvi Kivity <avi@redhat.com>
Thu, 5 Apr 2012 16:04:08 +0000 (19:04 +0300)
Signed-off-by: Sasikantha babu <sasikanth.v19@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/pmu.c

index a73f0c1048137062417b43e59785546c38b0dcd5..173df38dbda5b5fba0e86658692cd40faa8e8145 100644 (file)
@@ -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;
                }