From fe6e65efe39932521b861b4de358a9b73d2ac4cf Mon Sep 17 00:00:00 2001 From: Auger Eric Date: Mon, 6 Nov 2017 17:08:43 +0100 Subject: [PATCH 7/9] hw/arm/virt: Set INTx/gsi mapping RH-Author: Auger Eric Message-id: <1509988125-30275-3-git-send-email-eric.auger@redhat.com> Patchwork-id: 77508 O-Subject: [RHV7.5 qemu-kvm-ma PATCH 2/4] hw/arm/virt: Set INTx/gsi mapping Bugzilla: 1460957 RH-Acked-by: Alex Williamson RH-Acked-by: Laurent Vivier RH-Acked-by: Miroslav Rezanina From: Pranavkumar Sawargaonkar Let's provide the GPEX host bridge with the INTx/gsi mapping. This is needed for INTx/gsi routing. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Tushar Jagad Signed-off-by: Eric Auger Reviewed-by: Andrew Jones Tested-by: Feng Kan Message-id: 1505296004-6798-3-git-send-email-eric.auger@redhat.com Signed-off-by: Peter Maydell (cherry picked from commit c9bb8e16080d189a0c393a1061b427993516ae2b) Signed-off-by: Eric Auger Signed-off-by: Miroslav Rezanina --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index f243536..b175e36 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -1079,6 +1079,7 @@ static void create_pcie(const VirtMachineState *vms, qemu_irq *pic) for (i = 0; i < GPEX_NUM_IRQS; i++) { sysbus_connect_irq(SYS_BUS_DEVICE(dev), i, pic[irq + i]); + gpex_set_irq_num(GPEX_HOST(dev), i, irq + i); } pci = PCI_HOST_BRIDGE(dev); -- 1.8.3.1