]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/s390/kvm/kvm-s390.c
KVM: s390: cleanup handle_wait by reusing kvm_vcpu_block
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 13 May 2014 14:54:32 +0000 (16:54 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 21 Jul 2014 11:22:16 +0000 (13:22 +0200)
commit0759d0681cae279e77ebb4b76175e330360b01d9
tree42ce3eb00b2041e40441f2faf7382fd0805adbfe
parent6352e4d2dd9a349024a41356148eced553e1dce4
KVM: s390: cleanup handle_wait by reusing kvm_vcpu_block

This patch cleans up the code in handle_wait by reusing the common code
function kvm_vcpu_block.

signal_pending(), kvm_cpu_has_pending_timer() and kvm_arch_vcpu_runnable() are
sufficient for checking if we need to wake-up that VCPU. kvm_vcpu_block
uses these functions, so no checks are lost.

The flag "timer_due" can be removed - kvm_cpu_has_pending_timer() tests whether
the timer is pending, thus the vcpu is correctly woken up.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c