Received: from eggs.gnu.org ([2001:4830:134:3::10]:51567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b04nH-0002Nr-8J for qemu-devel@nongnu.org; Tue, 10 May 2016 06:21:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b04nC-0005Lo-Ul for qemu-devel@nongnu.org; Tue, 10 May 2016 06:21:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b04nC-0005Lj-Oy for qemu-devel@nongnu.org; Tue, 10 May 2016 06:21:30 -0400 From: Peter Xu Date: Tue, 10 May 2016 18:21:20 +0800 Message-Id: <1462875682-1349-1-git-send-email-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 0/2] IOAPIC: clear remote IRR for edge interrupts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mst@redhat.com, pbonzini@redhat.com, jan.kiszka@siemens.com, rkrcmar@redhat.com, peterx@redhat.com These two patches are seperated from v6 series of Intel IOMMU IR support. Existing read-only bits of IOAPIC registers are writable. We'd better follow the spec to make it read-only. The first patch did this. The 2nd patch emulated real IOAPIC behavior that remote IRR bits are cleared when configuring edge-triggered interrupts. This "feature" is used by Linux kernel to do explicit EOI for 0x1X IOAPICs. For more information, please refer to the comments in patch 2. This one depends on patch 1 to work. Peter Xu (2): ioapic: keep RO bits for IOAPIC entry ioapic: clear remote irr bit for edge-triggered interrupts hw/intc/ioapic.c | 33 +++++++++++++++++++++++++++++++++ include/hw/i386/ioapic_internal.h | 5 +++++ 2 files changed, 38 insertions(+) --=20 2.4.11