aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-07-09 08:33:52 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:33:13 -0400
commita1b37100d9e29c1f8dc3e2f5490a205c80180e01 (patch)
tree0e1448e35c8da68b865816a1173540f8e05234e4 /virt
parent0b71785dc05f1f66e6268022b9953c0d6a9985c6 (diff)
KVM: Reduce runnability interface with arch support code
Remove kvm_cpu_has_interrupt() and kvm_arch_interrupt_allowed() from interface between general code and arch code. kvm_arch_vcpu_runnable() checks for interrupts instead. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index d7b9bbba26da..532af9b41ee3 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1666,9 +1666,7 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu)
1666 for (;;) { 1666 for (;;) {
1667 prepare_to_wait(&vcpu->wq, &wait, TASK_INTERRUPTIBLE); 1667 prepare_to_wait(&vcpu->wq, &wait, TASK_INTERRUPTIBLE);
1668 1668
1669 if ((kvm_arch_interrupt_allowed(vcpu) && 1669 if (kvm_arch_vcpu_runnable(vcpu)) {
1670 kvm_cpu_has_interrupt(vcpu)) ||
1671 kvm_arch_vcpu_runnable(vcpu)) {
1672 set_bit(KVM_REQ_UNHALT, &vcpu->requests); 1670 set_bit(KVM_REQ_UNHALT, &vcpu->requests);
1673 break; 1671 break;
1674 } 1672 }