This can be handy during new reference counter approach evaluation.
Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
---
xen/drivers/passthrough/pci.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c
index a6c6368769..c8da80b981 100644
--- a/xen/drivers/passthrough/pci.c
+++ b/xen/drivers/passthrough/pci.c
@@ -1381,7 +1381,8 @@ static int cf_check _dump_pci_devices(struct pci_seg *pseg, void *arg)
else
#endif
printk("%pd", pdev->domain);
- printk(" - node %-3d", (pdev->node != NUMA_NO_NODE) ? pdev->node : -1);
+ printk(" - node %-3d refcnt %d", (pdev->node != NUMA_NO_NODE) ? pdev->node : -1,
+ atomic_read(&pdev->refcnt));
pdev_dump_msi(pdev);
printk("\n");
}
--
2.36.1