AMD/IOMMU: Render IO_PAGE_FAULT errors in a more useful manner
Print the PCI coordinates in its common format and use d%u notation for the
domain. As well as printing flags, decode them. IO_PAGE_FAULT is used for
interrupt remapping errors as well as DMA remapping errors.
Before:
(XEN) AMD-Vi: IO_PAGE_FAULT: domain = 0, device id = 0xa1, fault address = 0xbf695000, flags = 0x10
(XEN) AMD-Vi: IO_PAGE_FAULT: domain = 0, device id = 0xa1, fault address = 0xbf695040, flags = 0x10
(XEN) AMD-Vi: IO_PAGE_FAULT: domain = 0, device id = 0xa1, fault address = 0xfffffff0, flags = 0x30
(XEN) AMD-Vi: IO_PAGE_FAULT: domain = 0, device id = 0xa1, fault address = 0x100000000, flags = 0x30
(XEN) AMD-Vi: IO_PAGE_FAULT: domain = 0, device id = 0xa1, fault address = 0x100000040, flags = 0x30
After:
(XEN) AMD-Vi: IO_PAGE_FAULT: 0000:00:14.1 d0 addr
00000000bf5fc000 flags 0x10 PR
(XEN) AMD-Vi: IO_PAGE_FAULT: 0000:00:14.1 d0 addr
00000000bf5fc040 flags 0x10 PR
(XEN) AMD-Vi: IO_PAGE_FAULT: 0000:00:14.1 d0 addr
00000000fffffff0 flags 0x30 RW PR
(XEN) AMD-Vi: IO_PAGE_FAULT: 0000:00:14.1 d0 addr
0000000100000000 flags 0x30 RW PR
(XEN) AMD-Vi: IO_PAGE_FAULT: 0000:00:14.1 d0 addr
0000000100000040 flags 0x30 RW PR
No functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>