diff options
author | Alex Shi <alex.shi@intel.com> | 2012-03-04 00:13:38 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-08 07:11:44 -0500 |
commit | bec87d6e34de459a559fc326aa4e56bee4ba7423 (patch) | |
tree | 7b45de0e58b9ff303e2f8ba0166378cef06cedc2 /virt/kvm/kvm_main.c | |
parent | 07700a94b00a4fcbbfb07d1b72dc112a0e036735 (diff) |
KVM: use correct tlbs dirty type in cmpxchg
Using 'int' type is not suitable for a 'long' object. So, correct it.
Signed-off-by: Alex Shi <alex.shi@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 94e148e38719..42b73930a6de 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -203,7 +203,7 @@ static bool make_all_cpus_request(struct kvm *kvm, unsigned int req) | |||
203 | 203 | ||
204 | void kvm_flush_remote_tlbs(struct kvm *kvm) | 204 | void kvm_flush_remote_tlbs(struct kvm *kvm) |
205 | { | 205 | { |
206 | int dirty_count = kvm->tlbs_dirty; | 206 | long dirty_count = kvm->tlbs_dirty; |
207 | 207 | ||
208 | smp_mb(); | 208 | smp_mb(); |
209 | if (make_all_cpus_request(kvm, KVM_REQ_TLB_FLUSH)) | 209 | if (make_all_cpus_request(kvm, KVM_REQ_TLB_FLUSH)) |