linux/arch/s390/kvm
Christian Borntraeger d3bc2f91b4 KVM: s390: fix wait_queue handling
There are two waitqueues in kvm for wait handling:
vcpu->wq for virt/kvm/kvm_main.c and
vpcu->arch.local_int.wq for the s390 specific wait code.

the wait handling in kvm_s390_handle_wait was broken by using different
wait_queues for add_wait queue and remove_wait_queue.

There are two options to fix the problem:
o  move all the s390 specific code to vcpu->wq and remove
   vcpu->arch.local_int.wq
o  move all the s390 specific code to vcpu->arch.local_int.wq

This patch chooses the 2nd variant for two reasons:
o  s390 does not use kvm_vcpu_block but implements its own enabled wait
   handling.
   Having a separate wait_queue make it clear, that our wait mechanism is
   different
o  the patch is much smaller

Report-by:  Julia Lawall <julia@diku.dk>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
2009-08-05 13:59:46 +03:00
..
diag.c [S390] Use unsigned long long for u64 on 64bit. 2009-01-09 12:15:07 +01:00
gaccess.h
intercept.c KVM: s390: Sanity check on validity intercept 2009-06-10 11:48:56 +03:00
interrupt.c KVM: s390: fix wait_queue handling 2009-08-05 13:59:46 +03:00
Kconfig KVM: Add CONFIG_HAVE_KVM_IRQCHIP 2009-03-24 11:03:02 +02:00
kvm-s390.c KVM: s390: Allow stfle instruction in the guest 2009-06-28 14:10:30 +03:00
kvm-s390.h KVM: s390: use hrtimer for clock wakeup from idle - v2 2009-06-10 11:48:55 +03:00
Makefile
priv.c KVM: s390: Allow stfle instruction in the guest 2009-06-28 14:10:30 +03:00
sie64a.S
sigp.c KVM: s390: optimize float int lock: spin_lock_bh --> spin_lock 2009-06-10 11:48:56 +03:00