[PATCH 3/5] vtd: Print originating iommu on faults
Teddy Astie <[email protected]> Wed, 29 Jul 2026 11:59:45 +0200
| Newsgroups | gmane.comp.emulators.xen.devel |
|---|---|
| Message-ID | <1785319342.8631fc262581453bbf619ec5b2062170.19fad533fa5000e099@vates.tech> |
When a fault occurs on a IOMMU, print the IOMMU the fault is coming from. Signed-off-by: Teddy Astie <[email protected]> --- xen/drivers/passthrough/vtd/iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/drivers/passthrough/vtd/iommu.c b/xen/drivers/passthrough/vtd/iommu.c index 1005e200c1..5e9232d4b1 100644 --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -992,8 +992,8 @@ static int iommu_page_fault_do_one(struct vtd_iommu *iommu, int type, break; } - printk(XENLOG_G_WARNING VTDPREFIX "%s: reason %02x - %s\n", - kind, fault_reason, reason); + printk(XENLOG_G_WARNING VTDPREFIX "%s: reason %02x - %s on iommu:%u\n", + kind, fault_reason, reason, iommu->index); if ( iommu_verbose && fault_type == DMA_REMAP ) print_vtd_entries(iommu, PCI_BUS(source_id), PCI_DEVFN(source_id), -- 2.54.0 -- Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech