]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: s390: implementation of kvm_arch_vcpu_runnable()
authorMichael Mueller <mimu@linux.vnet.ibm.com>
Wed, 26 Feb 2014 15:14:17 +0000 (16:14 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Feb 2014 16:31:59 +0000 (17:31 +0100)
A vcpu is defined to be runnable if an interrupt is pending.

Signed-off-by: Michael Mueller <mimu@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/s390/kvm/kvm-s390.c

index a5da2cc798c82d4be0294c98ac789446347a0f96..18959bb75c5165a700064049668887a4b6862eab 100644 (file)
@@ -483,9 +483,7 @@ out:
 
 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu)
 {
-       /* kvm common code refers to this, but never calls it */
-       BUG();
-       return 0;
+       return kvm_cpu_has_interrupt(vcpu);
 }
 
 void s390_vcpu_block(struct kvm_vcpu *vcpu)