Drivers: hv: Issue explicit EOI when autoeoi is not enabled
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 29 Mar 2017 00:16:53 +0000 (17:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 16:07:51 +0000 (18:07 +0200)
When auto EOI is not enabled; issue an explicit EOI for hyper-v
interrupts.

Fixes: 6c248aad81c8 ("Drivers: hv: Base autoeoi enablement based on hypervisor hints")

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/mshyperv.c

index b5375b9497b3aed6fa2f54f85f9667b243c18f46..04cb8d34ccb803ae4a788b4d313c522e23118380 100644 (file)
@@ -49,6 +49,9 @@ void hyperv_vector_handler(struct pt_regs *regs)
        if (vmbus_handler)
                vmbus_handler();
 
+       if (ms_hyperv.hints & HV_X64_DEPRECATING_AEOI_RECOMMENDED)
+               ack_APIC_irq();
+
        exiting_irq();
        set_irq_regs(old_regs);
 }