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

Commit 150cd84b authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Greg Kroah-Hartman
Browse files

KVM: VMX: use cmpxchg64



commit c0a1666bcb2a33e84187a15eabdcd54056be9a97 upstream.

This fixes a compilation failure on 32-bit systems.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 90df2daa
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -2029,7 +2029,7 @@ static void vmx_vcpu_pi_load(struct kvm_vcpu *vcpu, int cpu)

		/* Allow posting non-urgent interrupts */
		new.sn = 0;
	} while (cmpxchg(&pi_desc->control, old.control,
	} while (cmpxchg64(&pi_desc->control, old.control,
			   new.control) != old.control);
}
/*
@@ -10705,7 +10705,7 @@ static int vmx_pre_block(struct kvm_vcpu *vcpu)

		/* set 'NV' to 'wakeup vector' */
		new.nv = POSTED_INTR_WAKEUP_VECTOR;
	} while (cmpxchg(&pi_desc->control, old.control,
	} while (cmpxchg64(&pi_desc->control, old.control,
			   new.control) != old.control);

	return 0;
@@ -10737,7 +10737,7 @@ static void vmx_post_block(struct kvm_vcpu *vcpu)

		/* set 'NV' to 'notification vector' */
		new.nv = POSTED_INTR_VECTOR;
	} while (cmpxchg(&pi_desc->control, old.control,
	} while (cmpxchg64(&pi_desc->control, old.control,
			   new.control) != old.control);

	if(vcpu->pre_pcpu != -1) {