KVM: introduce kvm_arch functions for IRQ bypass
authorEric Auger <eric.auger@linaro.org>
Fri, 18 Sep 2015 14:29:43 +0000 (22:29 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Oct 2015 13:06:45 +0000 (15:06 +0200)
commit1a02b27035f82091d51ecafcb9ccaac1f31d4eb2
tree850ac92a5723e08aca31ea74d58dcd6d6cb33a86
parent166c9775f1f8b8f00ad1db0fa5c8fc74059d965d
KVM: introduce kvm_arch functions for IRQ bypass

This patch introduces
- kvm_arch_irq_bypass_add_producer
- kvm_arch_irq_bypass_del_producer
- kvm_arch_irq_bypass_stop
- kvm_arch_irq_bypass_start

They make possible to specialize the KVM IRQ bypass consumer in
case CONFIG_KVM_HAVE_IRQ_BYPASS is set.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
[Add weak implementations of the callbacks. - Feng]
Signed-off-by: Feng Wu <feng.wu@intel.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/Kconfig
virt/kvm/eventfd.c