OSDN Git Service

KVM: lapic: stop advertising DIRECTED_EOI when in-kernel IOAPIC is in use
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 9 Feb 2018 13:01:33 +0000 (14:01 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Mar 2018 21:01:29 +0000 (22:01 +0100)
commit0bcc3fb95b97ac2ca223a5a870287b37f56265ac
tree3edf2ac70bf99b8d77affeb6464e0f70cfdc756d
parentc51eb52b8f9835f8f4f51e390885f8ddcfe53871
KVM: lapic: stop advertising DIRECTED_EOI when in-kernel IOAPIC is in use

Devices which use level-triggered interrupts under Windows 2016 with
Hyper-V role enabled don't work: Windows disables EOI broadcast in SPIV
unconditionally. Our in-kernel IOAPIC implementation emulates an old IOAPIC
version which has no EOI register so EOI never happens.

The issue was discovered and discussed a while ago:
https://www.spinics.net/lists/kvm/msg148098.html

While this is a guest OS bug (it should check that IOAPIC has the required
capabilities before disabling EOI broadcast) we can workaround it in KVM:
advertising DIRECTED_EOI with in-kernel IOAPIC makes little sense anyway.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/lapic.c