KVM: x86: check against irqchip_mode in ioapic_in_kernel()