KVM: PPC: Check max IRQ prio
authorAlexander Graf <agraf@suse.de>
Thu, 15 Apr 2010 22:11:56 +0000 (00:11 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:18:51 +0000 (12:18 +0300)
commitada7ba17b4054f303ad62d91ffd22bc4afad1657
treeec3ae04af0b79b74d850060b165f5898fbe85008
parent218d169c4c856eee7df56ea0fb8cbb32167e63d3
KVM: PPC: Check max IRQ prio

We have a define on what the highest bit of IRQ priorities is. So we can
just as well use it in the bit checking code and avoid invalid IRQ values
to be triggered.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s.c