KVM: Fix device assignment threaded irq handler
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 9 Jul 2012 16:53:22 +0000 (10:53 -0600)
committerAvi Kivity <avi@redhat.com>
Wed, 11 Jul 2012 10:01:48 +0000 (13:01 +0300)
commita76beb14123a69ca080f5a5425e28b786d62318d
treefb2023fbc90fb082221d06487e6e7bdb6dfa6bbb
parent055c9fa8874fa7261eec7a268366565db84af474
KVM: Fix device assignment threaded irq handler

The kernel no longer allows us to pass NULL for the hard handler
without also specifying IRQF_ONESHOT.  IRQF_ONESHOT imposes latency
in the exit path that we don't need for MSI interrupts.  Long term
we'd like to inject these interrupts from the hard handler when
possible.  In the short term, we can create dummy hard handlers
that return us to the previous behavior.  Credit to Michael for
original patch.

Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=43328

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/assigned-dev.c