Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bec87d6e authored by Alex Shi's avatar Alex Shi Committed by Avi Kivity
Browse files

KVM: use correct tlbs dirty type in cmpxchg



Using 'int' type is not suitable for a 'long' object. So, correct it.

Signed-off-by: default avatarAlex Shi <alex.shi@intel.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 07700a94
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))