Skip to content

Commit bec87d6

Browse files
Alex Shiavikivity
authored andcommitted
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>
1 parent 07700a9 commit bec87d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virt/kvm/kvm_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ static bool make_all_cpus_request(struct kvm *kvm, unsigned int req)
203203

204204
void kvm_flush_remote_tlbs(struct kvm *kvm)
205205
{
206-
int dirty_count = kvm->tlbs_dirty;
206+
long dirty_count = kvm->tlbs_dirty;
207207

208208
smp_mb();
209209
if (make_all_cpus_request(kvm, KVM_REQ_TLB_FLUSH))

0 commit comments

Comments
 (0)