]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita05d5a7376933d7fef878ebc50703f14a556cdc3
treefb2023fbc90fb082221d06487e6e7bdb6dfa6bbb
parent3e121c2d0a1eb99674d625f5b89d44b631709fdc
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