From: Eric Auger Date: Wed, 4 Mar 2015 10:14:33 +0000 (+0100) Subject: KVM: introduce kvm_arch_intc_initialized and use it in irqfd X-Git-Tag: omap-for-v4.2/o2_dc~192^2~20^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01c94e64f5a6f298774bdbde435e577821119fc0;p=pandora-kernel.git KVM: introduce kvm_arch_intc_initialized and use it in irqfd Introduce __KVM_HAVE_ARCH_INTC_INITIALIZED define and associated kvm_arch_intc_initialized function. This latter allows to test whether the virtual interrupt controller is initialized and ready to accept virtual IRQ injection. On some architectures, the virtual interrupt controller is dynamically instantiated, justifying that kind of check. The new function can now be used by irqfd to check whether the virtual interrupt controller is ready on KVM_IRQFD request. If not, KVM_IRQFD returns -EAGAIN. Signed-off-by: Eric Auger Acked-by: Christoffer Dall Reviewed-by: Andre Przywara Acked-by: Marc Zyngier Signed-off-by: Christoffer Dall --- Reading git-diff-tree failed