path: root/kernel
diff options
authorThomas Gleixner <>2014-02-23 21:40:22 +0000
committerThomas Gleixner <>2014-03-04 17:37:54 +0100
commit1aec169673d7db113c37367bbc371c2ba8109f06 (patch)
treef4266504ea668ed1b47300383875a96b50f58d92 /kernel
parent99c8b79d3c165f8e2a6247c14bfa1429e7efe51f (diff)
x86: Hyperv: Cleanup the irq mess
The vmbus/hyperv interrupt handling is another complete trainwreck and probably the worst of all currently in tree. If CONFIG_HYPERV=y then the interrupt delivery to the vmbus happens via the direct HYPERVISOR_CALLBACK_VECTOR. So far so good, but: The driver requests first a normal device interrupt. The only reason to do so is to increment the interrupt stats of that device interrupt. For no reason it also installs a private flow handler. We have proper accounting mechanisms for direct vectors, but of course it's too much effort to add that 5 lines of code. Aside of that the alloc_intr_gate() is not protected against reallocation which makes module reload impossible. Solution to the problem is simple to rip out the whole mess and implement it correctly. First of all move all that code to arch/x86/kernel/cpu/mshyperv.c and merily install the HYPERVISOR_CALLBACK_VECTOR with proper reallocation protection and use the proper direct vector accounting mechanism. Signed-off-by: Thomas Gleixner <> Acked-by: K. Y. Srinivasan <> Cc: Peter Zijlstra <> Cc: Greg Kroah-Hartman <> Cc: linuxdrivers <> Cc: x86 <> Link: Signed-off-by: Thomas Gleixner <>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions