Davidlohr Bueso 4c0b4bc60f kvm,mips: Fix potential swait_active() races
For example, the following could occur, making us miss a wakeup:

CPU0					CPU1
kvm_vcpu_block				kvm_mips_comparecount_func
					  [L] swait_active(&vcpu->wq)
  [S] prepare_to_swait(&vcpu->wq)
  [L] if (!kvm_vcpu_has_pending_timer(vcpu))
         schedule()                       [S] queue_timer_int(vcpu)

Ensure that the swait_active() check is not hoisted over the interrupt.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-09-15 16:57:13 +02:00
..
2016-07-05 16:09:11 +02:00
2017-03-28 14:53:54 +01:00
2017-03-28 14:53:54 +01:00
2015-03-27 21:25:19 +00:00
2017-03-28 14:54:00 +01:00
2017-06-04 16:53:00 +02:00
2017-06-04 16:53:00 +02:00