Skip to contentSkip to conversation

Add dequeue for external on BookE

PATCH Applied Alexander Graf 3 participants 3 messages Apr 7, 2010 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add dequeue for external on BookE

Commit a0abee86af2d1f048dbe99d2bcc4a2cefe685617 introduced unsetting of the IRQ line from userspace. This added a new core specific callback that I apparently forgot to add for BookE.

So let's add the callback for BookE as well, making it build again.

---
 arch/powerpc/kvm/booke.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
arch/powerpc/kvm/booke.c +6 -0
index 4d686cc..e170672 100644
@@ -132,6 +132,12 @@ void kvmppc_core_queue_external(struct kvm_vcpu *vcpu,
 	kvmppc_booke_queue_irqprio(vcpu, BOOKE_IRQPRIO_EXTERNAL);
 }
 
+void kvmppc_core_dequeue_external(struct kvm_vcpu *vcpu,
+                                  struct kvm_interrupt *irq)
+{
+	clear_bit(BOOKE_IRQPRIO_EXTERNAL, &vcpu->arch.pending_exceptions);
+}
+
 /* Deliver the interrupt of the corresponding priority, if possible. */
 static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu,
                                         unsigned int priority)
Signature · 1 line
1.6.0.2
#1 lore raw
Quoted 10 lines · Alexander Graf

Commit a0abee86af2d1f048dbe99d2bcc4a2cefe685617 introduced unsetting of the IRQ line from userspace. This added a new core specific callback that I apparently forgot to add for BookE.

So let's add the callback for BookE as well, making it build again.

---
 arch/powerpc/kvm/booke.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Applied, thanks.

#3 lore raw
In reply to a message not in the archive
Quoted 6 lines · On Wed, 7 Apr 2010 12:58:34 -0300 Marcelo Tosatti…
Quoted 4 lines · Alexander Graf

Commit a0abee86af2d1f048dbe99d2bcc4a2cefe685617 introduced unsetting of the IRQ line from userspace. This added a new core specific callback that I apparently forgot to add for BookE.

Quoted 8 lines
Quoted 6 lines

So let's add the callback for BookE as well, making it build again.

---
 arch/powerpc/kvm/booke.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Applied, thanks.

Thanks, guys.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/