diff options
author | Alexander Graf <agraf@suse.de> | 2010-03-24 16:48:18 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:16:51 -0400 |
commit | 18978768d89f638165646718c50ced19f2a10164 (patch) | |
tree | 024cb2b334769c0526fe8bf9cc4e221ddaa8ea34 /arch/powerpc/kvm/book3s.c | |
parent | 3eeafd7da2b0293b512abe95c86843fc4ab42add (diff) |
KVM: PPC: Allow userspace to unset the IRQ line
Userspace can tell us that it wants to trigger an interrupt. But
so far it can't tell us that it wants to stop triggering one.
So let's interpret the parameter to the ioctl that we have anyways
to tell us if we want to raise or lower the interrupt line.
Signed-off-by: Alexander Graf <agraf@suse.de>
v2 -> v3:
- Add CAP for unset irq
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/book3s.c')
-rw-r--r-- | arch/powerpc/kvm/book3s.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c index ff5a42058257..34e1a342bec8 100644 --- a/arch/powerpc/kvm/book3s.c +++ b/arch/powerpc/kvm/book3s.c | |||
@@ -231,6 +231,12 @@ void kvmppc_core_queue_external(struct kvm_vcpu *vcpu, | |||
231 | kvmppc_book3s_queue_irqprio(vcpu, BOOK3S_INTERRUPT_EXTERNAL); | 231 | kvmppc_book3s_queue_irqprio(vcpu, BOOK3S_INTERRUPT_EXTERNAL); |
232 | } | 232 | } |
233 | 233 | ||
234 | void kvmppc_core_dequeue_external(struct kvm_vcpu *vcpu, | ||
235 | struct kvm_interrupt *irq) | ||
236 | { | ||
237 | kvmppc_book3s_dequeue_irqprio(vcpu, BOOK3S_INTERRUPT_EXTERNAL); | ||
238 | } | ||
239 | |||
234 | int kvmppc_book3s_irqprio_deliver(struct kvm_vcpu *vcpu, unsigned int priority) | 240 | int kvmppc_book3s_irqprio_deliver(struct kvm_vcpu *vcpu, unsigned int priority) |
235 | { | 241 | { |
236 | int deliver = 1; | 242 | int deliver = 1; |