kvm: Conditionally register IRQ bypass consumer
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 5 May 2016 17:58:35 +0000 (11:58 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 May 2016 20:37:55 +0000 (22:37 +0200)
commit14717e2031862d9aa2512b24a7df42cf68a977ec
tree2e13c987730c4253cde756284492be1f5b4ea1ea
parentb52f3ed02221252d8ee2c7d756e76fad4a5e84f6
kvm: Conditionally register IRQ bypass consumer

If we don't support a mechanism for bypassing IRQs, don't register as
a consumer.  This eliminates meaningless dev_info()s when the connect
fails between producer and consumer, such as on AMD systems where
kvm_x86_ops->update_pi_irte is not implemented

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/eventfd.c