OSHW-DEIMOS/SOFTWARE/A64-TERES/linux-a64/arch/powerpc/kvm/irq.h
Dimitar Gamishev f9b0e7a283 linux
2017-10-13 14:07:04 +03:00

21 lines
307 B
C

#ifndef __IRQ_H
#define __IRQ_H
#include <linux/kvm_host.h>
static inline int irqchip_in_kernel(struct kvm *kvm)
{
int ret = 0;
#ifdef CONFIG_KVM_MPIC
ret = ret || (kvm->arch.mpic != NULL);
#endif
#ifdef CONFIG_KVM_XICS
ret = ret || (kvm->arch.xics != NULL);
#endif
smp_rmb();
return ret;
}
#endif