KVM: VMX: refactor/fix IRQ and NMI injectability determination