From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aymla-0007U9-I9 for qemu-devel@nongnu.org; Fri, 06 May 2016 16:54:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aymlO-00073M-Oy for qemu-devel@nongnu.org; Fri, 06 May 2016 16:54:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aymlO-00070S-JF for qemu-devel@nongnu.org; Fri, 06 May 2016 16:54:18 -0400 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Date: Fri, 6 May 2016 22:53:44 +0200 Message-Id: <1462568028-31037-1-git-send-email-rkrcmar@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [RFC 0/4] APIC, IOMMU, KVM: add x2APIC interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , "Lan, Tianyu" , Igor Mammedov , Jan Kiszka , Peter Xu , Eduardo Habkost , Richard Henderson This series bases on Peter's IR v6 and depends on patches that were just posted to kvm-list, "[RFC 0/9] KVM: x86: break the xAPIC barrier". The kernel interface could use your comments, but internal QEMU one is in dire need of them. Please see [1/4]. I have tested the series and seems to work as well as it can. Peter's IR v6 didn't boot on my setup, so I reverted to the latest version I know was working, v4, and rebased paches for testing. The setup from Igor's latest x2APIC QEMU patches creates two VCPUs, first has id 0 and second has 280. Edge IO-APIC and MSI interrupts were being delivered to both of them, but level didn't work -- only one interrupt was ever delivered, I blame EOI. I didn't have enough time to look into IR, but will do so next week. Radim Kr=C4=8Dm=C3=A1=C5=99 (4): apic: add deliver_msi to APICCommonClass intel_iommu: use deliver_msi APIC callback linux_headers: add MSI_X2APIC kvm: support MSI_X2APIC capability hw/i386/intel_iommu.c | 29 ++++++++++++++++++----------- hw/i386/kvm/apic.c | 21 ++++++++++++++------- hw/i386/xen/xen_apic.c | 7 +++++++ hw/intc/apic.c | 7 +++++++ include/hw/i386/apic_internal.h | 5 +++++ include/sysemu/kvm.h | 1 + kvm-all.c | 14 +++++++++++++- linux-headers/linux/kvm.h | 5 +++++ target-i386/kvm.c | 4 ++++ 9 files changed, 74 insertions(+), 19 deletions(-) --=20 2.8.2