Messages in this thread | | | Subject | Re: [PATCH] iommu/vt-d: Dump DMAR translation structure | From | Lu Baolu <> | Date | Wed, 9 Jun 2021 15:47:36 +0800 |
| |
On 5/27/21 7:35 AM, 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@intel.com>
Please fix below compile error:
ld: drivers/iommu/intel/dmar.o: in function `dmar_fault_do_one': /home/allen/Workspace/iommu/drivers/iommu/intel/dmar.c:1965: undefined reference to `dmar_fault_dump_ptes' make: *** [Makefile:1191: vmlinux] Error 1
Best regards, baolu
| |