KVM: properly check max PIC pin in irq route setup