]> 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)
commit2bd0a306af17009cb9227300a14d7ab3af617a39
treefb2023fbc90fb082221d06487e6e7bdb6dfa6bbb
parentd5574edec3c69be54bbf28dda4bc2b9fb07ebd5a
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