[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] xen/passthrough: Render domains with %pd in the 'Q' debug handler



commit c67c43ce4a63e7ea314525ba178ce7ab955c9292
Author:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Wed Nov 13 13:04:43 2019 +0000
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Wed Nov 13 14:32:44 2019 +0000

    xen/passthrough: Render domains with %pd in the 'Q' debug handler
    
    IOMMUs are owned by DOM_XEN, and with XSA-302, DOM_IO is used for
    quarantined devices.  Use %pd in the printk to render the system
    domains more intelligently.
    
    Before:
      (XEN) 0000:00:01.0 - dom 0   - node 0   - MSIs < >
      (XEN) 0000:00:00.0 - dom 0   - node 0   - MSIs < >
      (XEN) 0000:80:00.2 - dom 32754 - node 1   - MSIs < >
      (XEN) 0000:a0:00.2 - dom 32754 - node 1   - MSIs < >
      (XEN) 0000:c0:00.2 - dom 32754 - node 1   - MSIs < >
      (XEN) 0000:e0:00.2 - dom 32754 - node 1   - MSIs < >
      (XEN) 0000:00:00.2 - dom 32754 - node 0   - MSIs < >
      (XEN) 0000:20:00.2 - dom 32754 - node 0   - MSIs < >
      (XEN) 0000:40:00.2 - dom 32754 - node 0   - MSIs < >
      (XEN) 0000:60:00.2 - dom 32754 - node 0   - MSIs < >
    
    After:
      (XEN) 0000:00:01.0 - d0 - node 0   - MSIs < >
      (XEN) 0000:00:00.0 - d0 - node 0   - MSIs < >
      (XEN) 0000:80:00.2 - d[XEN] - node 1   - MSIs < >
      (XEN) 0000:a0:00.2 - d[XEN] - node 1   - MSIs < >
      (XEN) 0000:c0:00.2 - d[XEN] - node 1   - MSIs < >
      (XEN) 0000:e0:00.2 - d[XEN] - node 1   - MSIs < >
      (XEN) 0000:00:00.2 - d[XEN] - node 0   - MSIs < >
      (XEN) 0000:20:00.2 - d[XEN] - node 0   - MSIs < >
      (XEN) 0000:40:00.2 - d[XEN] - node 0   - MSIs < >
      (XEN) 0000:60:00.2 - d[XEN] - node 0   - MSIs < >
    
    Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
    Release-acked-by: Juergen Gross <jgross@xxxxxxxx>
---
 xen/drivers/passthrough/pci.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c
index 18a7dc7224..8e501a79a8 100644
--- a/xen/drivers/passthrough/pci.c
+++ b/xen/drivers/passthrough/pci.c
@@ -1349,10 +1349,9 @@ 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 - node %-3d - MSIs < ",
+        printk("%04x:%02x:%02x.%u - %pd - node %-3d - MSIs < ",
                pseg->nr, pdev->bus,
-               PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn),
-               pdev->domain ? pdev->domain->domain_id : -1,
+               PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), pdev->domain,
                (pdev->node != NUMA_NO_NODE) ? pdev->node : -1);
         list_for_each_entry ( msi, &pdev->msi_list, list )
                printk("%d ", msi->irq);
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.