Skip to content

Commit

Permalink
KVM: PMU: Fix integer constant is too large warning in kvm_pmu_set_msr()
Browse files Browse the repository at this point in the history
Signed-off-by: Sasikantha babu <sasikanth.v19@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Sasikantha babu authored and Avi Kivity committed Apr 5, 2012
1 parent 7d6e1cb commit fea5295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/pmu.c
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit fea5295

Please sign in to comment.