From ad49978e083123a1068461cd7f2a8e0c2becca17 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Tue, 4 Feb 2014 12:52:35 -0500 Subject: [PATCH 2/6] pci: On PCI dump device keyhandler include Device and Vendor ID As it helps in troubleshooting if the initial domain has re-numbered the bus numbers and what Xen sees is not the reality. Signed-off-by: Konrad Rzeszutek Wilk --- xen/drivers/passthrough/pci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index 64dfd73..1ad4f17 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -948,9 +948,12 @@ static int _dump_pci_devices(struct pci_seg *pseg, void *arg) list_for_each_entry ( pdev, &pseg->alldevs_list, alldevs_list ) { - printk("%04x:%02x:%02x.%u - dom %-3d - MSIs < ", + int id = pci_conf_read32(pseg->nr, pdev->bus, PCI_SLOT(pdev->devfn), + PCI_FUNC(pdev->devfn), 0); + printk("%04x:%02x:%02x.%u (%04x:%04x)- dom %-3d - MSIs < ", pseg->nr, pdev->bus, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), + id & 0xffff, (id >> 16) & 0xffff, pdev->domain ? pdev->domain->domain_id : -1); list_for_each_entry ( msi, &pdev->msi_list, list ) printk("%d ", msi->irq); -- 1.8.3.1