diff options
author | 2014-02-26 16:14:17 +0100 | |
---|---|---|
committer | 2014-02-26 17:31:59 +0100 | |
commit | f87618e870d03ac114dd5496b23f6f628af54152 (patch) | |
tree | 1c976b3feaf27108bfa03eae9fc6c7250511c397 | |
parent | KVM: x86: emulator_cmpxchg_emulated should mark_page_dirty (diff) | |
download | linux-f87618e870d03ac114dd5496b23f6f628af54152.tar.gz linux-f87618e870d03ac114dd5496b23f6f628af54152.tar.bz2 linux-f87618e870d03ac114dd5496b23f6f628af54152.zip |
KVM: s390: implementation of kvm_arch_vcpu_runnable()
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>
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index a5da2cc798c8..18959bb75c51 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -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) |