Received: from eggs.gnu.org ([2001:4830:134:3::10]:50132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRzfj-0001Va-8f for qemu-devel@nongnu.org; Mon, 03 Jul 2017 07:37:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRzfi-0002vs-Bt for qemu-devel@nongnu.org; Mon, 03 Jul 2017 07:37:43 -0400 References: <1497360677-4780-1-git-send-email-eric.auger@redhat.com> From: Auger Eric Message-ID: <8d9934e2-efab-c7c6-da3a-31749a031f31@redhat.com> Date: Mon, 3 Jul 2017 13:37:26 +0200 MIME-Version: 1.0 In-Reply-To: <1497360677-4780-1-git-send-email-eric.auger@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 0/3] Generic PCIe host bridge INTx determination for INTx routing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: eric.auger.pro@gmail.com, peter.maydell@linaro.org, alex.williamson@redhat.com, qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: christoffer.dall@linaro.org, agraf@suse.de, pranavkumar@linaro.org, drjones@redhat.com, wei@redhat.com Hi, On 13/06/2017 15:31, Eric Auger wrote: > This series implements INTx to gsi routing for ARM VIRT/GPEX. This is > a respin of [1] which was lost in limbo. > > ARM virt uses GPEX PCIe bridge. This latter does not implement INTx > to GSI routing. PCIe/INTx assignment works but the consequence is > irqfd is not used along with INTx interrupts and VFIO INTx handlers > are executed on userspace leading to an important performance degradation. > > This issue is witnessed by the following messages; > > qemu-system-aarch64: -device vfio-pci,host=0006:90:00.0: PCI: Bug - > unimplemented PCI INTx routing (gpex-pcihost) > qemu-system-aarch64: PCI: Bug - unimplemented PCI INTx routing (gpex-pcihost) > qemu-system-aarch64: PCI: Bug - unimplemented PCI INTx routing (gpex-pcihost) > > So with this series, irqfd is set up for PCIe/INTx passthrough and we get > the optimal performance. Also we get rid of the above messages. Ping? any feedback on this series that fixes irqfd setup for PCIe passthrough/ARM with legacy interrupts? Thanks Eric > > This series can be found at: > https://github.com/eauger/qemu/tree/v2.9-gpex-intx-v3 > > References: > [1] Generic PCIe host bridge INTx determination for INTx routing > https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg04975.html > > Pranavkumar Sawargaonkar (3): > hw/pci-host/gpex: Set INTx index/gsi mapping > hw/arm/virt: Set INTx/gsi mapping > hw/pci-host/gpex: Implement PCI INTx routing > > hw/arm/virt.c | 4 ++++ > hw/pci-host/gpex.c | 22 ++++++++++++++++++++++ > include/hw/pci-host/gpex.h | 3 +++ > 3 files changed, 29 insertions(+) >