This can be handy during new reference counter approach evaluation.
Signed-off-by: Volodymyr Babchuk <[email protected]>
---
v3:
- Moved from another patch series
---
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 b32382aca0..1eb79e7d01 100644
--- a/xen/drivers/passthrough/pci.c
+++ b/xen/drivers/passthrough/pci.c
@@ -1275,7 +1275,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,
+ refcnt_read(&pdev->refcnt));
pdev_dump_msi(pdev);
printk("\n");
}
--
2.39.2