diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-07-09 08:33:52 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:33:13 -0400 |
commit | a1b37100d9e29c1f8dc3e2f5490a205c80180e01 (patch) | |
tree | 0e1448e35c8da68b865816a1173540f8e05234e4 /arch/powerpc/kvm | |
parent | 0b71785dc05f1f66e6268022b9953c0d6a9985c6 (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 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 0341391eff12..2a4551f78f60 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c | |||
@@ -39,20 +39,9 @@ gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn) | |||
39 | return gfn; | 39 | return gfn; |
40 | } | 40 | } |
41 | 41 | ||
42 | int kvm_cpu_has_interrupt(struct kvm_vcpu *v) | ||
43 | { | ||
44 | return !!(v->arch.pending_exceptions); | ||
45 | } | ||
46 | |||
47 | int kvm_arch_interrupt_allowed(struct kvm_vcpu *vcpu) | ||
48 | { | ||
49 | /* do real check here */ | ||
50 | return 1; | ||
51 | } | ||
52 | |||
53 | int kvm_arch_vcpu_runnable(struct kvm_vcpu *v) | 42 | int kvm_arch_vcpu_runnable(struct kvm_vcpu *v) |
54 | { | 43 | { |
55 | return !(v->arch.msr & MSR_WE); | 44 | return !(v->arch.msr & MSR_WE) || !!(v->arch.pending_exceptions); |
56 | } | 45 | } |
57 | 46 | ||
58 | 47 | ||