KVM: ppc: distinguish between interrupts and priorities
authorHollis Blanchard <hollisb@us.ibm.com>
Sat, 3 Jan 2009 22:23:12 +0000 (16:23 -0600)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:59 +0000 (11:02 +0200)
Although BOOKE_MAX_INTERRUPT has the right value, the meaning is not match.

Signed-off-by: Liu Yu <yu.liu@freescale.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/booke.h

index 933c406c7915cf2f1c908015ce0026e0eeff9b24..f192fbee2f2923f7a0d80fa31f6137d0a1b1e4ec 100644 (file)
@@ -163,7 +163,7 @@ void kvmppc_core_deliver_interrupts(struct kvm_vcpu *vcpu)
        unsigned int priority;
 
        priority = __ffs(*pending);
-       while (priority <= BOOKE_MAX_INTERRUPT) {
+       while (priority <= BOOKE_IRQPRIO_MAX) {
                if (kvmppc_booke_irqprio_deliver(vcpu, priority))
                        break;
 
index 311fdbc23fbec49455f9da5b6678a196107d0520..7ceeb3e739b44610dc1a4e915c8f1b5092b48a3b 100644 (file)
@@ -42,6 +42,7 @@
 #define BOOKE_IRQPRIO_EXTERNAL 13
 #define BOOKE_IRQPRIO_FIT 14
 #define BOOKE_IRQPRIO_DECREMENTER 15
+#define BOOKE_IRQPRIO_MAX 15
 
 /* Helper function for "full" MSR writes. No need to call this if only EE is
  * changing. */