Re: [PATCH v2] iommu/vt-d: Dump DMAR translation structure

From: Joerg Roedel
Date: Mon Jul 26 2021 - 08:25:44 EST


On Wed, Jul 21, 2021 at 09:24:53PM -0700, Kyung Min Park wrote:
> When the dmar translation fault happens, the kernel prints a single line
> fault reason with corresponding hexadecimal code defined in the Intel VT-d
> specification.
>
> Currently, when user wants to debug the translation fault in detail,
> debugfs is used for dumping the dmar_translation_struct, which is not
> available when the kernel failed to boot.
>
> Dump the DMAR translation structure, pagewalk the IO page table and print
> the page table entry when the fault happens.
>
> Signed-off-by: Kyung Min Park <kyung.min.park@xxxxxxxxx>

This is too much noise in dmesg for a single dmar fault. Please hide
that additional debug information behind a debug kernel option for the
VT-d driver.

Thanks,

Joerg