Skip to content

Commit

Permalink
KVM: use correct tlbs dirty type in cmpxchg
Browse files Browse the repository at this point in the history
Using 'int' type is not suitable for a 'long' object. So, correct it.

Signed-off-by: Alex Shi <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
Alex Shi authored and avikivity committed Mar 8, 2012
1 parent 07700a9 commit bec87d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ static bool make_all_cpus_request(struct kvm *kvm, unsigned int req)

void kvm_flush_remote_tlbs(struct kvm *kvm)
{
int dirty_count = kvm->tlbs_dirty;
long dirty_count = kvm->tlbs_dirty;

smp_mb();
if (make_all_cpus_request(kvm, KVM_REQ_TLB_FLUSH))
Expand Down

0 comments on commit bec87d6

Please sign in to comment.