From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0Np8-0001N3-SG for qemu-devel@nongnu.org; Wed, 11 May 2016 02:40:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0Np3-0005op-Lr for qemu-devel@nongnu.org; Wed, 11 May 2016 02:40:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0Np3-0005ob-62 for qemu-devel@nongnu.org; Wed, 11 May 2016 02:40:41 -0400 From: Peter Xu Date: Wed, 11 May 2016 14:40:30 +0800 Message-Id: <1462948831-931-1-git-send-email-peterx@redhat.com> Subject: [Qemu-devel] [PATCH] pci: fix requester id with PCI bridges 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@web.de, rkrcmar@redhat.com, alex.williamson@redhat.com, peterx@redhat.com Recently I encountered issue when debugging Intel IOMMU IR codes, that interrupts are not working correctly with PCI bridges (reported by Radim). This patch fixes the problem. I assume requester ID should be the devfn on root PCI bus (that's how I understand it before, and also in guest kernel, IRTE entry SID is filled in that way), however I failed to find any good document to confirm this. Please let me know if this is correct (or I made any mistake). Thanks! Peter Xu (1): pci: fix requester id to be the one on root bus hw/pci/msi.c | 2 +- hw/pci/pci.c | 9 +++++++++ include/hw/pci/pci.h | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) -- 2.4.11