From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyI1w-0000y8-8x for qemu-devel@nongnu.org; Fri, 29 May 2015 07:00:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyI1r-0001Y2-8h for qemu-devel@nongnu.org; Fri, 29 May 2015 07:00:47 -0400 Received: from mail-lb0-f176.google.com ([209.85.217.176]:36122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyI1r-0001Xx-2r for qemu-devel@nongnu.org; Fri, 29 May 2015 07:00:43 -0400 Received: by lbbqq2 with SMTP id qq2so45982226lbb.3 for ; Fri, 29 May 2015 04:00:42 -0700 (PDT) From: Christoffer Dall Date: Fri, 29 May 2015 13:01:06 +0200 Message-Id: <1432897270-7780-1-git-send-email-christoffer.dall@linaro.org> Subject: [Qemu-devel] [PATCH v4 0/4] Add support for for GICv2m and MSIs to arm-virt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Christoffer Dall , kvmarm@lists.cs.columbia.edu, shankerd@codeaurora.org, eric.auger@linaro.org Now when we have a host generic PCIe controller in the virt board, it would be nice to be able to use MSIs so that we can eventually enable VHOST with KVM. With these patches you can use MSIs with TCG and with KVM, but you still need some fixes for the mapping of the IRQ index to the GSI number for IRQFD to work. A separate series that enables IRQFD and vhost is available: "ARM adaptations for vhost irqfd setup" https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg01054.html) Tested with KVM on XGene and with TCG by configuring a virtio-pci network adapter for the guest and verifying MSIs going through as expected. Rebased on target-arm.next, see the individual patches for detailed changelogs. Christoffer Dall (4): target-arm: Add GIC phandle to VirtBoardInfo arm_gicv2m: Add GICv2m widget to support MSIs target-arm: Extend the gic node properties target-arm: Add the GICv2m to the virt board hw/arm/virt.c | 73 ++++++++++++++----- hw/intc/Makefile.objs | 1 + hw/intc/arm_gicv2m.c | 190 ++++++++++++++++++++++++++++++++++++++++++++++++++ include/hw/arm/virt.h | 2 + 4 files changed, 248 insertions(+), 18 deletions(-) create mode 100644 hw/intc/arm_gicv2m.c -- 2.1.2.330.g565301e.dirty