]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: ioapic: Record edge-triggered interrupts delivery status
authorWincy Van <fanwenyi0529@gmail.com>
Wed, 24 Dec 2014 03:14:29 +0000 (11:14 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 10 Mar 2015 13:37:43 +0000 (10:37 -0300)
commit4dcf70ff6b3d56447b8af2f17f498c30b33ea15f
treeddea5207022bd6dbf8e974dcbb6673374bc05106
parent0e8413db9c6662a651bd5c50c3beccba7f4d4c49
KVM: ioapic: Record edge-triggered interrupts delivery status

This patch fixes the bug discussed in
https://www.mail-archive.com/kvm@vger.kernel.org/msg109813.html

This patch uses a new field named irr_delivered to record the
delivery status of edge-triggered interrupts, and clears the
delivered interrupts in kvm_get_ioapic. So it has the same effect
of commit b577410de54efe374e39b4f4d856e582708764f8
("KVM: ioapic: clear IRR for edge-triggered interrupts at delivery")
while avoids the bug of Windows guests.

Signed-off-by: Wincy Van <fanwenyi0529@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/ioapic.c
arch/x86/kvm/ioapic.h